[v9.3.x] Package: @grafana/e2e updates (#59825)

Package: @grafana/e2e updates (#59723)

E2E package updates

- Update addDashboard flow to work with latest grafana
- Update viewport configuration to ensure components aren't hidden

(cherry picked from commit b4cf711a74)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-12-05 09:02:34 -05:00
committed by GitHub
co-authored by Andreas Christou
parent 847361027f
commit b9b6cafb89
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
{
"projectId": "zb7k1c",
"supportFile": "cypress/support/index.ts",
"videoCompression": 20
"videoCompression": 20,
"viewportWidth": 1920,
"viewportHeight": 1080
}
@@ -236,9 +236,9 @@ const addVariable = (config: PartialAddVariableConfig, isFirst: boolean): AddVar
e2e.pages.Dashboard.Settings.Variables.Edit.General.generalTypeSelectV2()
.should('be.visible')
.within(() => {
e2e.components.Select.singleValue().should('have.text', 'Query').click();
e2e.components.Select.singleValue().should('have.text', 'Query').parent().click();
});
e2e.components.Select.option().should('be.visible').contains(type).click();
e2e.pages.Dashboard.Settings.Variables.Edit.General.generalTypeSelectV2().find('input').type(`${type}{enter}`);
}
if (label) {