|
@@ -25,6 +25,7 @@ context('Viewport', () => {
|
|
|
// We added a cy.wait() between each viewport change so you can see
|
|
// We added a cy.wait() between each viewport change so you can see
|
|
|
// the change otherwise it is a little too fast to see :)
|
|
// the change otherwise it is a little too fast to see :)
|
|
|
|
|
|
|
|
|
|
+ /* eslint-disable cypress/no-unnecessary-waiting */
|
|
|
cy.viewport('macbook-15')
|
|
cy.viewport('macbook-15')
|
|
|
cy.wait(200)
|
|
cy.wait(200)
|
|
|
cy.viewport('macbook-13')
|
|
cy.viewport('macbook-13')
|
|
@@ -52,6 +53,7 @@ context('Viewport', () => {
|
|
|
cy.wait(200)
|
|
cy.wait(200)
|
|
|
cy.viewport('iphone-4', 'landscape')
|
|
cy.viewport('iphone-4', 'landscape')
|
|
|
cy.wait(200)
|
|
cy.wait(200)
|
|
|
|
|
+ /* eslint-enable cypress/no-unnecessary-waiting */
|
|
|
|
|
|
|
|
// The viewport will be reset back to the default dimensions
|
|
// The viewport will be reset back to the default dimensions
|
|
|
// in between tests (the default can be set in cypress.json)
|
|
// in between tests (the default can be set in cypress.json)
|