open dashboard instead

This commit is contained in:
Ashley Harrison 2023-08-29 18:01:30 +01:00
parent e94e22919b
commit bab9c77c4d
No known key found for this signature in database
GPG Key ID: AEC29E54E8D7CD90

View File

@ -92,18 +92,16 @@ e2e.scenario({
addScenarioDashBoard: false,
skipScenario: false,
scenario: () => {
// Open dashboard
e2e.flows.openDashboard({
uid: 'd41dbaa2-a39e-4536-ab2b-caca52f1a9c8',
});
e2e().intercept('/api/ds/query*').as('dataQuery');
// Switch to Browser timezone
e2e.flows.setTimeRange({
from: 'now-6h',
to: 'now',
zone: 'Browser',
// Open dashboard in Browser timezone
e2e.flows.openDashboard({
uid: 'd41dbaa2-a39e-4536-ab2b-caca52f1a9c8',
timeRange: {
from: 'now-6h',
to: 'now',
zone: 'Browser',
},
});
// Need to wait for 2 calls as there's 2 panels
e2e().wait(['@dataQuery', '@dataQuery']);
@ -146,11 +144,14 @@ e2e.scenario({
});
});
// Test Tokyo timezone
e2e.flows.setTimeRange({
from: 'now-6h',
to: 'now',
zone: 'Asia/Tokyo',
// Open dashboard in Tokyo timezone
e2e.flows.openDashboard({
uid: 'd41dbaa2-a39e-4536-ab2b-caca52f1a9c8',
timeRange: {
from: 'now-6h',
to: 'now',
zone: 'Asia/Tokyo',
},
});
// Need to wait for 2 calls as there's 2 panels
e2e().wait(['@dataQuery', '@dataQuery']);
@ -193,11 +194,14 @@ e2e.scenario({
});
});
// Test LA timezone
e2e.flows.setTimeRange({
from: 'now-6h',
to: 'now',
zone: 'America/Los_Angeles',
// Open dashboard in LA timezone
e2e.flows.openDashboard({
uid: 'd41dbaa2-a39e-4536-ab2b-caca52f1a9c8',
timeRange: {
from: 'now-6h',
to: 'now',
zone: 'America/Los_Angeles',
},
});
// Need to wait for 2 calls as there's 2 panels
e2e().wait(['@dataQuery', '@dataQuery']);