mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Enables flakey e2e test (#45816)
This commit is contained in:
parent
ede31b1602
commit
bb5a39faef
@ -5,7 +5,7 @@ e2e.scenario({
|
|||||||
itName: 'Tests dashboard links and variables in links',
|
itName: 'Tests dashboard links and variables in links',
|
||||||
addScenarioDataSource: false,
|
addScenarioDataSource: false,
|
||||||
addScenarioDashBoard: false,
|
addScenarioDashBoard: false,
|
||||||
skipScenario: true, // Skipped because it was causing many failures in main.
|
skipScenario: false,
|
||||||
scenario: () => {
|
scenario: () => {
|
||||||
e2e.flows.openDashboard({ uid: 'yBCC3aKGk' });
|
e2e.flows.openDashboard({ uid: 'yBCC3aKGk' });
|
||||||
e2e()
|
e2e()
|
||||||
@ -21,7 +21,9 @@ e2e.scenario({
|
|||||||
})
|
})
|
||||||
.as('tagsDemoSearch');
|
.as('tagsDemoSearch');
|
||||||
|
|
||||||
// waiting for links to render, couldn't find a better way using routes for instance
|
// waiting for network requests first
|
||||||
|
e2e().wait(['@tagsTemplatingSearch', '@tagsDemoSearch']);
|
||||||
|
// and then waiting for links to render
|
||||||
e2e().wait(1000);
|
e2e().wait(1000);
|
||||||
|
|
||||||
const verifyLinks = (variableValue: string) => {
|
const verifyLinks = (variableValue: string) => {
|
||||||
@ -36,11 +38,7 @@ e2e.scenario({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
e2e.components.DashboardLinks.dropDown()
|
e2e.components.DashboardLinks.dropDown().should('be.visible').click().wait('@tagsTemplatingSearch');
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
.wait('@tagsTemplatingSearch')
|
|
||||||
.wait('@tagsDemoSearch');
|
|
||||||
|
|
||||||
// verify all links, should have All value
|
// verify all links, should have All value
|
||||||
verifyLinks('All');
|
verifyLinks('All');
|
||||||
|
Loading…
Reference in New Issue
Block a user