Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions tests/interop/ui/travelops.spec.ts.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test.use({
});


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

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

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

});
Loading