chore(test): attempting to fix a race condition in e2e tests (#16450)

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>
This commit is contained in:
Vladimir Lazar 2026-03-05 10:19:50 +01:00 committed by GitHub
parent 7a964f464c
commit 137685163e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,10 +102,12 @@ test.describe.serial('Compose onboarding workflow verification', { tag: '@smoke'
await onboardingPage.nextStepButton.click();
const onboardigLocalPage = new ComposeLocalInstallPage(page);
const downloadSuccess = onboardigLocalPage.onboardingStatusMessage.filter({
hasText: 'Compose successfully Downloaded',
});
const rateLimitExceeded = page.getByText('API rate limit exceeded');
const downloadSuccess = onboardigLocalPage.onboardingStatusMessage
.filter({
hasText: 'Compose successfully Downloaded',
})
.first();
const rateLimitExceeded = page.getByText('API rate limit exceeded').first();
await playExpect(downloadSuccess.or(rateLimitExceeded)).toBeVisible({ timeout: 50_000 });