Skip to content

Commit 6803208

Browse files
committed
use correct locator
1 parent e9b406d commit 6803208

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

e2e/playwright/tests/deploy-upgrade/test.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ test('deploy upgrade', async ({ page }) => {
55
test.setTimeout(15 * 60 * 1000); // 15 minutes
66
await login(page);
77
await page.getByRole('link', { name: 'Version history', exact: true }).click();
8-
// TODO NOW: uncomment this
9-
// await page.locator('.available-update-row', { hasText: process.env.APP_UPGRADE_VERSION }).getByRole('button', { name: 'Deploy', exact: true }).click();
10-
// TODO NOW: remove this line
11-
await page.getByText(process.env.APP_UPGRADE_VERSION, { exact: true }).locator('../../..').getByRole('button', { name: 'Deploy', exact: true }).click();
8+
await page.locator('.available-update-row', { hasText: process.env.APP_UPGRADE_VERSION }).getByRole('button', { name: 'Deploy', exact: true }).click();
129
const iframe = page.frameLocator('#upgrade-service-iframe');
1310
await expect(iframe.locator('h3')).toContainText('The First Config Group', { timeout: 20 * 1000 });
1411
await expect(iframe.locator('input[type="text"]')).toHaveValue('initial-hostname.com');
@@ -33,7 +30,6 @@ test('deploy upgrade', async ({ page }) => {
3330
}
3431

3532
await expect(page.locator('.available-update-row', { hasText: process.env.APP_UPGRADE_VERSION })).not.toBeVisible({ timeout: 10 * 1000 });
36-
await expect(page.locator('.VersionHistoryRow', { hasText: process.env.APP_UPGRADE_VERSION })).toContainText('Deploying');
3733
await expect(page.locator('.VersionHistoryRow', { hasText: process.env.APP_UPGRADE_VERSION })).toContainText('Currently deployed version', { timeout: 90 * 1000 });
3834
await page.getByRole('link', { name: 'Dashboard', exact: true }).click();
3935
await expect(page.locator('.VersionCard-content--wrapper')).toContainText(process.env.APP_UPGRADE_VERSION);

0 commit comments

Comments
 (0)