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
@@ -157,11 +157,11 @@ const applicationInsightsName = 'az-mon-test-ai-a';
describe('Azure monitor datasource', () => {
before(() => {
e2e.flows.login(e2e.env('USERNAME'), e2e.env('PASSWORD'));
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
// Add datasource
// This variable will be set in CI
const CI = e2e.env('CI');
const CI = Cypress.env('CI');
if (CI) {
cy.readFile('outputs.json').then((outputs) => {
provisionAzureMonitorDatasources([
@@ -190,11 +190,11 @@ describe('Azure monitor datasource', () => {
});
beforeEach(() => {
e2e.flows.login(e2e.env('USERNAME'), e2e.env('PASSWORD'));
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
});
after(() => {
e2e.flows.login(e2e.env('USERNAME'), e2e.env('PASSWORD'));
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
e2e.flows.revertAllChanges();
});