Skip to content

Commit 051d756

Browse files
authored
Merge pull request #24 from validatedpatterns/ui_test_updates
Updates for UI changes
2 parents 3c48855 + 7556b8c commit 051d756

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎tests/interop/ui/travelops.spec.ts.j2‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test.use({
55
});
66

77

8-
test('travelops: test kiali dashboard and travel-agency graph', async ({ page }) => {
8+
test('travelops: adjust requests on travel control dashboard', async ({ page }) => {
99
// Log in to Openshift console
1010
await page.goto("{{ hub_console.stdout }}");
1111
await page.getByLabel('Username *').fill('kubeadmin');
@@ -25,15 +25,17 @@ test('travelops: test kiali dashboard and travel-agency graph', async ({ page })
2525
await page.locator('[id="voyages\\.fr_ratio"]').fill('51');
2626
await page.locator('[id="voyages\\.fr_travel_t1"]').fill('59');
2727
await page.screenshot({ path: 'travel_control_dashboard.png', fullPage: true });
28+
});
2829

29-
// Go to kiali console and check for expected text
30+
test('travelops: test travel-agency traffic graph', async ({ page }) => {
31+
test.setTimeout(60000);
32+
// Log in
3033
await page.goto("https://kiali-istio-system.apps.{{ hub_cluster }}");
31-
await page.locator('[data-test="istio-system-EXPAND"]').getByText('istio-system').click();
32-
await page.locator('[data-test="travel-agency-EXPAND"]').getByText('travel-agency').click();
33-
await page.locator('[data-test="travel-control-EXPAND"]').getByText('travel-control').click();
34-
await page.screenshot({ path: 'kiali_console.png', fullPage: true });
34+
await page.getByLabel('Username *').fill('kubeadmin');
35+
await page.getByLabel('Password *').fill("{{ kubeadmin }}");
36+
await page.getByRole('button', { name: 'Log in' }).click();
3537

36-
// Go to kiali travel-agency graph
38+
// Go to kiali travel-agency traffic graph and verify apps
3739
await page.getByRole('link', { name: 'Traffic Graph' }).click();
3840
await page.locator('[data-test="namespace-dropdown"]').click();
3941
await page.locator('[id="namespace-list-item\\[travel-agency\\]"]').getByRole('checkbox').check();
@@ -42,5 +44,4 @@ test('travelops: test kiali dashboard and travel-agency graph', async ({ page })
4244
await page.locator('[data-test="namespace-dropdown"]').click();
4345
await page.waitForTimeout(5000);
4446
await page.screenshot({ path: 'kiali_traffic_graph.png', fullPage: true });
45-
4647
});

0 commit comments

Comments
 (0)