E2e testing: Add stopDockerHost command to Cypress tests (#1112)

* Add stopDockerHost command to e2e tests
This commit is contained in:
gillespi314 2021-06-16 13:09:52 -05:00 committed by GitHub
parent d78c5fd124
commit 0279139632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -9,6 +9,9 @@ if (Cypress.env("FLEET_TIER") === "basic") {
cy.addDockerHost();
cy.logout();
});
afterEach(() => {
cy.stopDockerHost();
});
it("Can perform the appropriate basic-tier admin actions", () => {
cy.login("anna@organization.com", "user123#");

View file

@ -8,6 +8,9 @@ if (Cypress.env("FLEET_TIER") === "basic") {
cy.addDockerHost();
cy.logout();
});
afterEach(() => {
cy.stopDockerHost();
});
it("Can perform the appropriate team observer actions", () => {
cy.login("marco@organization.com", "user123#");

View file

@ -9,6 +9,9 @@ if (Cypress.env("FLEET_TIER") === "core") {
cy.addDockerHost();
cy.logout();
});
afterEach(() => {
cy.stopDockerHost();
});
it("Can perform the appropriate core-tier admin actions", () => {
cy.login("anna@organization.com", "user123#");