Skip to content

Commit

Permalink
changed await request when logged in to UserDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki committed Nov 9, 2023
1 parent 45f0685 commit e42f4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/customCommands/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Cypress.Commands.add("loginInShop", () => {
});

Cypress.Commands.add("visitHomePageLoggedViaApi", user => {
cy.addAliasToGraphRequest("Home")
cy.addAliasToGraphRequest("UserDetails")
.loginUserViaRequest("auth", user)
.visit(urlList.homePage)
.waitForRequestAndCheckIfNoErrors("@Home");
.waitForRequestAndCheckIfNoErrors("@UserDetails");
});

Cypress.Commands.add(
Expand Down

0 comments on commit e42f4d3

Please sign in to comment.