Skip to content

Commit

Permalink
just use timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pandemicsyn committed Aug 5, 2024
1 parent 8690993 commit 3b314a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/playwright/tests/change-channel/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ test('change channel', async ({ page }) => {
await expect(page.locator('#app')).toContainText('v1.0.1', { timeout: 10000 });
await expect(page.locator('#app')).toContainText('Upstream Update', { timeout: 10000 });

await page.locator('.u-marginTop--20 > .VersionCard-content--wrapper').locator('div').filter({ hasText: /^View preflight checksView preflight checksDeploy$/ }).getByRole('link').click();
await expect(page.getByText('Your cluster meets the recommended and required versions of Kubernetes.')).toBeVisible();
await page.waitForTimeout(5000); // give preflight time to complete

await page.getByRole('button', { name: 'Deploy' }).click();

await expect(page.locator('#app')).toContainText('Currently deployed version', { timeout: 15000 });
Expand Down

0 comments on commit 3b314a2

Please sign in to comment.