diff --git a/cypress/integration/01-smoke.spec.ts b/cypress/integration/01-smoke.spec.ts index 6af2709..6ba2338 100644 --- a/cypress/integration/01-smoke.spec.ts +++ b/cypress/integration/01-smoke.spec.ts @@ -16,10 +16,12 @@ e2e.scenario({ e2e.pages.AddDataSource.visit() // e2e().visit('http://localhost:3000/connections/datasources/new'); - e2e.pages.AddDataSource.dataSourcePluginsV2(pluginJson.name).click().screenshot("add-datasource") + e2e.pages.AddDataSource.dataSourcePluginsV2(pluginJson.name).click() // e2e().get(`[aria-label="Add new data source ${pluginJson.name}"]`).click(); e2e().get('[accept="application/json"]').selectFile('/home/runner/work/grafana-google-analytics-datasource/grafana-google-analytics-datasource/test/credencials/auth.json', { force: true }); - e2e().get('[data-testid="data-testid Data source settings page Save and Test button"]').click().wait('@pluginHealth', { log: true, timeout: 10000 }).wait(100) + e2e().get('[data-testid="data-testid Data source settings page Save and Test button"]').scrollIntoView().click().wait('@pluginHealth', { log: true, timeout: 10000 }).wait(100) + e2e().get('[data-testid="data-testid Data source settings page Save and Test button"]').scrollIntoView().screenshot('save') + e2e().get('[data-testid="data-testid Alert success"] div').contains('Success').should('exist') e2e.flows.importDashboards('tests/dashboard')