Skip to content

Commit

Permalink
Fix change-channel e2e test (#4913)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Sep 20, 2024
1 parent 10a8c23 commit 8400baa
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 @@ -21,15 +21,15 @@ test('change channel', async ({ page }) => {
await page.getByRole('button', { name: 'Ok, got it!' }).click();

await expect(page.locator('#app')).toContainText('Alternate');
await expect(page.locator('#app')).toContainText('1.0.3', { timeout: 10000 });
await expect(page.locator('#app')).toContainText('v1.0.1', { timeout: 10000 });
await expect(page.locator('#app')).toContainText('Upstream Update', { timeout: 10000 });

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

await expect(page.locator('#app')).toContainText('Currently deployed version', { timeout: 15000 });
await expect(page.getByText('v1.0.0')).not.toBeVisible();
await expect(page.getByText('1.0.3')).toBeVisible();
await expect(page.getByText('v1.0.1')).toBeVisible();
});

async function changeChannel(channelId: string) {
Expand Down

0 comments on commit 8400baa

Please sign in to comment.