feat: move profile settings to profile page (#56135)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Sem Bauke
2024-10-03 13:34:41 +02:00
committed by GitHub
parent 17bb3aeb73
commit b0146aa865
24 changed files with 563 additions and 287 deletions
+10 -2
View File
@@ -14,7 +14,15 @@ test.afterAll(() => {
test.describe('Add Portfolio Item', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/settings');
await page.goto('/developmentuser');
if (!process.env.CI) {
await page
.getByRole('button', { name: 'Preview custom 404 page' })
.click();
}
await page.getByRole('button', { name: 'Edit my profile' }).click();
});
test('The title has validation', async ({ page }) => {
@@ -134,7 +142,7 @@ test.describe('Add Portfolio Item', () => {
await page
.getByRole('button', { name: 'Save this portfolio item' })
.click();
await expect(page.getByTestId('flash-message')).toContainText(
await expect(page.getByRole('alert').first()).toContainText(
/We have updated your portfolio/
);
});