Skip to content

Commit

Permalink
Remove unnecessary visit commands from tests
Browse files Browse the repository at this point in the history
The loginViaApi custom command already visits the home page after
setting the cookies.
  • Loading branch information
wlsf82 committed Dec 13, 2021
1 parent 71b20aa commit cf9dafb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cypress/integration/api/model.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ describe("Models - Creation via API call", () => {
beforeEach(() => {
cy.intercept("GET", "/models?userId=*").as("getUserModels");
cy.loginViaApi();
cy.visit("/#!/main");
cy.wait("@getUserModels").then((userModels) => {
cy.cleanUpUserModels(userModels);
});
Expand Down
1 change: 0 additions & 1 deletion cypress/integration/model.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ describe("Model", () => {
beforeEach(() => {
cy.intercept("GET", "/models?userId=*").as("getUserModels");
cy.loginViaApi();
cy.visit("/#!/main");
cy.wait("@getUserModels").then((userModels) => {
cy.cleanUpUserModels(userModels);
cy.reload();
Expand Down
1 change: 0 additions & 1 deletion cypress/integration/models.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ describe("Models view", () => {
beforeEach(() => {
cy.intercept("GET", "/models?userId=*").as("getUserModels");
cy.loginViaApi();
cy.visit("/#!/main");
cy.wait("@getUserModels").then((userModels) => {
const userId = userModels.request.url.match(/userId=([^&]*)/)[1];

Expand Down

0 comments on commit cf9dafb

Please sign in to comment.