Chore: Remove more stuff from the e2e object (#75513)

* cut down the e2e object more :)

* undo changes in grafana-e2e

* couple more things to undo in grafana-e2e
This commit is contained in:
Ashley Harrison
2023-09-27 11:33:00 +01:00
committed by GitHub
parent 2a9ef4cce5
commit d8e99e2bb5
54 changed files with 75 additions and 77 deletions

View File

@@ -82,14 +82,14 @@ export const addDataSource = (config?: Partial<AddDataSourceConfig>) => {
e2e.pages.DataSource.saveAndTest().click();
if (awaitHealth) {
cy.wait('@health', { timeout: timeout ?? e2e.config().defaultCommandTimeout });
cy.wait('@health', { timeout: timeout ?? Cypress.config().defaultCommandTimeout });
}
// use the timeout passed in if it exists, otherwise, continue to use the default
e2e.pages.DataSource.alert()
.should('exist')
.contains(expectedAlertMessage, {
timeout: timeout ?? e2e.config().defaultCommandTimeout,
timeout: timeout ?? Cypress.config().defaultCommandTimeout,
});
cy.logToConsole('Added data source with name:', name);