-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): add E2E_MATCH environment variable
- Loading branch information
1 parent
1030652
commit 5feb050
Showing
12 changed files
with
108 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,24 @@ | ||
import {expect, test} from '@playwright/test'; | ||
import { | ||
CLUSTERS_MENU_EXPECT, | ||
CLUSTER_TITLE, | ||
makeClusterTille, | ||
makeClusterUrl, | ||
makeUrl, | ||
} from '../utils'; | ||
|
||
test('ClustersMenu', async ({page}) => { | ||
await page.goto(makeUrl()); | ||
|
||
const [expectPath = 'navigation?path=/', expectTitle = 'Navigation', expectTitlePath = '/'] = ( | ||
CLUSTERS_MENU_EXPECT || 'navigation?path=/' | ||
).split(';'); | ||
|
||
// Expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle('Clusters'); | ||
|
||
await page.click(`.cluster-menu__item-heading:text("${CLUSTER_TITLE?.toUpperCase()}")`); | ||
|
||
await expect(page).toHaveTitle(makeClusterTille({page: expectTitle, path: expectTitlePath})); | ||
await expect(page).toHaveURL(makeClusterUrl(expectPath)); // checks default users settings, Navigation is default start page | ||
}); |
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
import {expect, test} from '@playwright/test'; | ||
import {CLUSTER, E2E_OPERATION_ID, E2E_OPERATION_2_ID, makeClusterUrl} from '../utils'; | ||
|
||
test('Accounts - Monitoring', async ({page}) => { | ||
await page.goto(makeClusterUrl('accounts/general?account=account-for-e2e')); | ||
|
||
await page.waitForSelector( | ||
`a:text("My monitoring")[href="https://my.monitoring.service/accounts?cluster=${CLUSTER}&account=account-for-e2e"]`, | ||
); | ||
}); | ||
|
||
test('Scheduling - Monitoring', async ({page}) => { | ||
await page.goto(makeClusterUrl('scheduling/overview?pool=yt-e2e-pool-1&tree=default')); | ||
|
||
await page.waitForSelector('text="yt-e2e-pool-1"'); | ||
await page.waitForSelector( | ||
`a:text("My monitoring")[href="https://monitoring-service.my-domain.com/d/DB-id?var-pool=yt-e2e-pool-1&var-cluster=${CLUSTER}&var-tree=default"]`, | ||
); | ||
}); | ||
|
||
test('Operations - Monitoring for one pool', async ({page}) => { | ||
await page.goto(makeClusterUrl(`operations/${E2E_OPERATION_ID}`)); | ||
|
||
await page.waitForSelector( | ||
`a:text("My monitoring")[href^="https://my.monitoring.service/operations?cluster=${CLUSTER}&id=${E2E_OPERATION_ID}&pool=root&tree=default&from="]`, | ||
); | ||
}); | ||
|
||
test('Operations - Monitoring two pools ', async ({page}) => { | ||
await page.goto(makeClusterUrl(`operations/${E2E_OPERATION_2_ID}`)); | ||
|
||
await page.click('.tabs :text("Monitoring")'); | ||
|
||
await page.waitForSelector( | ||
`a:text("My monitoring")[href^="https://my.monitoring.service/operations?cluster=${CLUSTER}&id=${E2E_OPERATION_2_ID}&pool=root&tree=default&from="]`, | ||
); | ||
|
||
await page.waitForSelector( | ||
`a:text("My monitoring")[href^="https://my.monitoring.service/operations?cluster=${CLUSTER}&id=${E2E_OPERATION_2_ID}&pool=test-e2e&tree=e2e&from="]`, | ||
); | ||
}); | ||
|
||
test('Tablet Cell Bundles - Monitoring', async ({page}) => { | ||
await page.goto(makeClusterUrl('tablet_cell_bundles/tablet_cells?activeBundle=default')); | ||
|
||
await page.waitForSelector( | ||
`a:text("My monitoring")[href="https://my.monitoring.service/bundles?cluster=${CLUSTER}&bundle=default"]`, | ||
); | ||
}); |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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