Skip to content

Commit

Permalink
Fixed browser tests (#19852)
Browse files Browse the repository at this point in the history
no issue

- browser tests were failing due to the renaming of a button
  • Loading branch information
sagzy committed Mar 13, 2024
1 parent 9d9707e commit 59bbade
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ghost/core/test/e2e-browser/utils/e2e-browser-utils.js
Expand Up @@ -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');
Expand All @@ -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();
};

/**
Expand All @@ -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();
};

/**
Expand Down

0 comments on commit 59bbade

Please sign in to comment.