@@ -5,10 +5,7 @@ test('deploy upgrade', async ({ page }) => {
5
5
test . setTimeout ( 15 * 60 * 1000 ) ; // 15 minutes
6
6
await login ( page ) ;
7
7
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 ( ) ;
12
9
const iframe = page . frameLocator ( '#upgrade-service-iframe' ) ;
13
10
await expect ( iframe . locator ( 'h3' ) ) . toContainText ( 'The First Config Group' , { timeout : 20 * 1000 } ) ;
14
11
await expect ( iframe . locator ( 'input[type="text"]' ) ) . toHaveValue ( 'initial-hostname.com' ) ;
@@ -33,7 +30,6 @@ test('deploy upgrade', async ({ page }) => {
33
30
}
34
31
35
32
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' ) ;
37
33
await expect ( page . locator ( '.VersionHistoryRow' , { hasText : process . env . APP_UPGRADE_VERSION } ) ) . toContainText ( 'Currently deployed version' , { timeout : 90 * 1000 } ) ;
38
34
await page . getByRole ( 'link' , { name : 'Dashboard' , exact : true } ) . click ( ) ;
39
35
await expect ( page . locator ( '.VersionCard-content--wrapper' ) ) . toContainText ( process . env . APP_UPGRADE_VERSION ) ;
0 commit comments