Skip to content

Commit

Permalink
Updated Donations browser test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdwinden committed Jan 8, 2025
1 parent 762f2a0 commit 30dffdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ test.describe('Tips and donations', () => {
await expect(suggestedAmountInput).toBeVisible();
await expect(suggestedAmountInput).toHaveValue('5');

await expect(section.getByRole('combobox')).toBeVisible();

const donateUrl = section.getByTestId('donate-url');
await expect(donateUrl).toBeVisible();
await expect(donateUrl).toHaveText('http://test.com/#/portal/support');
Expand Down
3 changes: 2 additions & 1 deletion ghost/core/test/e2e-browser/portal/donations.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ test.describe('Portal', () => {
await select.click();
await sharedPage.locator(`[data-testid="select-option"][data-value="EUR"]`).click();
await section.getByRole('button', {name: 'Save'}).click();
await expect(select).not.toBeVisible();
// Currency selector is now always visible
await expect(select).toBeVisible();

// go to website and open portal
await sharedPage.goto('/#/portal/support');
Expand Down

0 comments on commit 30dffdf

Please sign in to comment.