From fa430666bf9149efaa6e8c6f6b544320760190b4 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 1 Jul 2024 09:54:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20staff=20user=20modal=20n?= =?UTF-8?q?ot=20showing=20correct=20example=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix https://linear.app/tryghost/issue/ENG-928/regression-author-url-slug-preview-broken - simple change to append the slug to the end of the example hint - also added test --- .../src/components/settings/general/users/ProfileBasics.tsx | 2 +- .../test/acceptance/general/users/profile.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/admin-x-settings/src/components/settings/general/users/ProfileBasics.tsx b/apps/admin-x-settings/src/components/settings/general/users/ProfileBasics.tsx index cac841a3fb..98864d1ede 100644 --- a/apps/admin-x-settings/src/components/settings/general/users/ProfileBasics.tsx +++ b/apps/admin-x-settings/src/components/settings/general/users/ProfileBasics.tsx @@ -33,7 +33,7 @@ const BasicInputs: React.FC = ({errors, clearError, user, setUs onKeyDown={() => clearError('email')} /> { await modal.getByLabel('Full name').fill('New Admin'); await modal.getByLabel('Email').fill('newadmin@test.com'); await modal.getByLabel('Slug').fill('newadmin'); + await expect(modal.getByText('https://example.com/author/newadmin')).toBeVisible(); await modal.getByLabel('Location').fill('some location'); await modal.getByLabel('Website').fill('https://example.com'); await modal.getByLabel('Facebook profile').fill('fb');