vitests: Set global retry

This sets retry globally to `3`, so we don't have to add it to the tests individually.

For the tests that are reliable this shouldn't have any effect, but it will trigger on tests that proved to be a bit flakey (like revisit tests).
This commit is contained in:
regexowl 2025-02-05 09:28:59 +01:00 committed by Klara Simickova
parent 16ae47e6e2
commit 28253c040e
4 changed files with 7 additions and 5 deletions

View file

@ -246,7 +246,7 @@ describe('OpenSCAP request generated correctly', () => {
});
});
test('remove a profile', { retry: 3, timeout: 20000 }, async () => {
test('remove a profile', { timeout: 20000 }, async () => {
await renderCreateMode();
await selectGuestImageTarget();
await goToOscapStep();
@ -265,7 +265,7 @@ describe('OpenSCAP request generated correctly', () => {
});
});
test('change profile', { retry: 3, timeout: 20000 }, async () => {
test('change profile', { timeout: 20000 }, async () => {
await renderCreateMode();
await selectGuestImageTarget();
await goToOscapStep();

View file

@ -220,7 +220,7 @@ describe('Step Upload to Azure', () => {
await verifyCancelButton(router);
});
test('basics work', { retry: 3 }, async () => {
test('basics work', async () => {
await renderCreateMode();
await selectAzureTarget();
await goToAzureStep();