Chore: fix flaky e2e (#45822)

This commit is contained in:
Hugo Häggmark
2022-02-24 11:34:49 +01:00
committed by GitHub
parent d6c580e338
commit 0036233fa6

View File

@@ -7,7 +7,6 @@ e2e.scenario({
addScenarioDashBoard: false,
skipScenario: false,
scenario: () => {
e2e.flows.openDashboard({ uid: 'yBCC3aKGk' });
e2e()
.intercept({
method: 'GET',
@@ -21,6 +20,8 @@ e2e.scenario({
})
.as('tagsDemoSearch');
e2e.flows.openDashboard({ uid: 'yBCC3aKGk' });
// waiting for network requests first
e2e().wait(['@tagsTemplatingSearch', '@tagsDemoSearch']);
// and then waiting for links to render