mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Fixed flaky Offers tests (#19170)
refs https://ghost.slack.com/archives/C02G9E68C/p1701258027793649 - missing an `await` before the `expect` in the test causing it to be potentially flaky.
This commit is contained in:
parent
0b57c01dd9
commit
2f43f58010
@ -80,7 +80,7 @@ test.describe('Offers Modal', () => {
|
||||
}]
|
||||
});
|
||||
const successModal = page.getByTestId('offer-success-modal');
|
||||
expect(successModal).toBeVisible();
|
||||
await expect(successModal).toBeVisible();
|
||||
});
|
||||
|
||||
test('Errors if required fields are missing', async ({page}) => {
|
||||
|
Loading…
Reference in New Issue
Block a user