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:
Ronald Langeveld 2023-11-29 13:55:54 +02:00 committed by GitHub
parent 0b57c01dd9
commit 2f43f58010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}) => {