1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/cypress/integration/viewport.spec.js

15 lines
401 B
JavaScript

/// <reference types="Cypress" />
context('Viewport', () => {
beforeEach(() => {
cy.visit('http://localhost:3000')
})
it('cy.viewport() - set the viewport size and dimension', () => {
cy.get('#root > div > header > div > a > h1').should('be.visible')
cy.viewport(320, 480)
cy.get('#root > div > header > div > a > h1').should('not.be.visible')
})
})