Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcc3108 committed Dec 10, 2023
1 parent 5ac279f commit 6d0f4c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/integration/01-smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6d0f4c6

Please sign in to comment.