From 59bbade6303f5f511278dc80619ce31430f8a620 Mon Sep 17 00:00:00 2001 From: Sag Date: Wed, 13 Mar 2024 12:54:19 +0100 Subject: [PATCH] Fixed browser tests (#19852) no issue - browser tests were failing due to the renaming of a button --- ghost/core/test/e2e-browser/utils/e2e-browser-utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js b/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js index db82327cd0..2d42a93365 100644 --- a/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js +++ b/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js @@ -96,10 +96,10 @@ const setupStripe = async (page, stripConnectIntegrationToken) => { await expect(modal.getByRole('button', {name: 'Disconnect'})).toBeVisible(); await modal.getByRole('button', {name: 'Close'}).click(); - await page.getByRole('button', {name: '← Done'}).click(); + await page.getByTestId('exit-settings').click(); }; -// Setup Mailgun with fake data, for Ghost Admin to allow bulk sending +// Setup Mailgun with fake data for Ghost Admin to allow bulk sending const setupMailgun = async (page) => { await page.locator('.gh-nav a[href="#/settings/"]').click(); const section = page.getByTestId('mailgun'); @@ -110,7 +110,7 @@ const setupMailgun = async (page) => { await section.getByRole('button', {name: 'Save'}).click(); await section.getByText('Mailgun is set up').waitFor(); - await page.getByRole('button', {name: '← Done'}).click(); + await page.getByTestId('exit-settings').click(); }; /** @@ -127,7 +127,7 @@ const enableLabs = async (page) => { await section.getByLabel('Webmentions').click(); await section.getByLabel('Tips & donations').click(); - await page.getByRole('button', {name: '← Done'}).click(); + await page.getByTestId('exit-settings').click(); }; /**