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
This commit is contained in:
Andreas Christou 2022-12-05 13:49:25 +00:00 committed by GitHub
parent 0bdee8757b
commit b4cf711a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
{
"projectId": "zb7k1c",
"supportFile": "cypress/support/index.ts",
"videoCompression": 20
"videoCompression": 20,
"viewportWidth": 1920,
"viewportHeight": 1080
}

View File

@ -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) {