Skip to content

Commit

Permalink
tweak command order
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Macek committed Jul 2, 2024
1 parent 7de8e1f commit 13df69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ Cypress.Commands.add('testIcon', ({ element, name, size }) => {
cy.clock(now);
cy.document()
// set DPR and wait for resources (to avoid empty snapshot)
.then((document) => document.fonts.ready)
.then(() => cy.setDPR(1))
.then((document) => document.fonts.ready)
.then(() => cy.waitForStylesheets())
.then(() => {
// size
Expand Down

0 comments on commit 13df69d

Please sign in to comment.