Skip to content

Commit

Permalink
[v9.3.x] Package: @grafana/e2e updates (#59825)
Browse files Browse the repository at this point in the history
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 b4cf711)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
  • Loading branch information
grafanabot and aangelisc committed Dec 5, 2022
1 parent 8473610 commit b9b6caf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/grafana-e2e/cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"projectId": "zb7k1c",
"supportFile": "cypress/support/index.ts",
"videoCompression": 20
"videoCompression": 20,
"viewportWidth": 1920,
"viewportHeight": 1080
}
4 changes: 2 additions & 2 deletions packages/grafana-e2e/src/flows/addDashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b9b6caf

Please sign in to comment.