mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"projectId": "zb7k1c",
|
"projectId": "zb7k1c",
|
||||||
"supportFile": "cypress/support/index.ts",
|
"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()
|
e2e.pages.Dashboard.Settings.Variables.Edit.General.generalTypeSelectV2()
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.within(() => {
|
.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) {
|
if (label) {
|
||||||
|
|||||||
Reference in New Issue
Block a user