-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update admin console version v1.115.1 (#1027)
* updated adminconsole version * update tests for node join command UI (#1020) * Add playwright old app version test (#1026) * add test folder --------- Co-authored-by: sgalsaleh <[email protected]> Co-authored-by: Andrew Lavery <[email protected]>
- Loading branch information
1 parent
843444f
commit 3d9be5e
Showing
9 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { test, expect } from '@playwright/test'; | ||
import { login, deployEC18AppVersion } from '../shared'; | ||
|
||
test('deploy ec18 app version', async ({ page }) => { | ||
test.setTimeout(2 * 60 * 1000); // 2 minutes | ||
await login(page); | ||
await deployEC18AppVersion(page, expect); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const deployEC18AppVersion = async (page, expect) => { | ||
await expect(page.getByRole('button', { name: 'Add node', exact: true })).toBeVisible(); | ||
await page.getByRole('button', { name: 'Continue' }).click(); | ||
await expect(page.locator('h3')).toContainText('The First Config Group'); | ||
await page.locator('input[type="text"]').click(); | ||
await page.locator('input[type="text"]').fill('initial-hostname.com'); | ||
await page.locator('input[type="password"]').click(); | ||
await page.locator('input[type="password"]').fill('password'); | ||
await page.getByRole('button', { name: 'Continue' }).click(); | ||
await expect(page.getByText('Preflight checks', { exact: true })).toBeVisible({ timeout: 10 * 1000 }); | ||
await expect(page.getByRole('button', { name: 'Re-run' })).toBeVisible({ timeout: 10 * 1000 }); | ||
await expect(page.locator('#app')).toContainText('Embedded Cluster Installation CRD exists'); | ||
await expect(page.locator('#app')).toContainText('Embedded Cluster Config CRD exists'); | ||
await page.getByRole('button', { name: 'Deploy' }).click(); | ||
await expect(page.locator('#app')).toContainText('Currently deployed version', { timeout: 90000 }); | ||
await expect(page.locator('#app')).toContainText('Ready', { timeout: 30000 }); | ||
await expect(page.locator('#app')).toContainText('Up to date'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './login'; | ||
export * from './deploy-app'; | ||
export * from './deploy-app'; | ||
export * from './deploy-ec18-app-version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters