0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Fixed theme settings playwright tests

This commit is contained in:
Aileen Booker 2024-10-23 09:49:40 +04:00
parent 27dd23bd00
commit 64a10776ba

View file

@ -27,13 +27,9 @@ test.describe('Theme settings', async () => {
await page.goto('/');
const designSection = page.getByTestId('design');
const themeSection = page.getByTestId('theme');
await designSection.getByRole('button', {name: 'Customize'}).click();
const designModal = page.getByTestId('design-modal');
await designModal.getByTestId('change-theme').click();
await themeSection.getByRole('button', {name: 'Change theme'}).click();
const modal = page.getByTestId('theme-modal');
@ -77,13 +73,9 @@ test.describe('Theme settings', async () => {
await page.goto('/');
const designSection = page.getByTestId('design');
const themeSection = page.getByTestId('theme');
await designSection.getByRole('button', {name: 'Customize'}).click();
const designModal = page.getByTestId('design-modal');
await designModal.getByTestId('change-theme').click();
await themeSection.getByRole('button', {name: 'Change theme'}).click();
const modal = page.getByTestId('theme-modal');
@ -142,13 +134,9 @@ test.describe('Theme settings', async () => {
await page.goto('/');
const designSection = page.getByTestId('design');
const themeSection = page.getByTestId('theme');
await designSection.getByRole('button', {name: 'Customize'}).click();
const designModal = page.getByTestId('design-modal');
await designModal.getByTestId('change-theme').click();
await themeSection.getByRole('button', {name: 'Change theme'}).click();
const modal = page.getByTestId('theme-modal');
@ -193,13 +181,9 @@ test.describe('Theme settings', async () => {
await page.goto('/');
const designSection = page.getByTestId('design');
const themeSection = page.getByTestId('theme');
await designSection.getByRole('button', {name: 'Customize'}).click();
const designModal = page.getByTestId('design-modal');
await designModal.getByTestId('change-theme').click();
await themeSection.getByRole('button', {name: 'Change theme'}).click();
const modal = page.getByTestId('theme-modal');
@ -236,13 +220,9 @@ test.describe('Theme settings', async () => {
await page.goto('/');
const designSection = page.getByTestId('design');
const themeSection = page.getByTestId('theme');
await designSection.getByRole('button', {name: 'Customize'}).click();
const designModal = page.getByTestId('design-modal');
await designModal.getByTestId('change-theme').click();
await themeSection.getByRole('button', {name: 'Change theme'}).click();
const modal = page.getByTestId('theme-modal');