Skip to content

Commit

Permalink
avoid waiting for fontawesome in cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Jan 23, 2024
1 parent fe54552 commit fa05705
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ Cypress.Commands.add("loginByApi", (username, password) => {
Cypress.Commands.add(
"awaitUrl",
(url: string, disableLoginVerification = false) => {
cy.intercept(/fontawesome/).as("fontawesome");
cy.intercept(/currentuser/).as("currentuser");
cy.visit(url);
cy.wait("@fontawesome");
disableLoginVerification
? cy.wait("@currentuser")
: cy.wait("@currentuser").its("response.statusCode").should("eq", 200);
Expand Down

0 comments on commit fa05705

Please sign in to comment.