mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
open dashboard instead
This commit is contained in:
parent
e94e22919b
commit
bab9c77c4d
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user