Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement e2e integration test for specs rendering #353

Open
github-actions bot opened this issue May 21, 2021 · 0 comments
Open

implement e2e integration test for specs rendering #353

github-actions bot opened this issue May 21, 2021 · 0 comments
Labels

Comments

@github-actions
Copy link

implement e2e integration test for specs rendering

// TODO: implement e2e integration test for specs rendering

  const email = '[email protected]'
  const password = 'password123'

  beforeEach(function () {
    cy.visit('/login')
    cy.get('[data-test-id="email"]').type(email)
    cy.get('[data-test-id="password"]').type(password)
    cy.get('[data-test-id="submit"]').click()
  })

  it('render previews on homepage', function () {
    // TODO: implement e2e integration test for specs rendering
    cy.get('[data-test-id="preview"]').should('have.length', 2)
  })

  it('render full preview of first element on a separate page', function () {
    cy.get('[data-test-id="preview"]')
      .first()
      .then(($link) => {
        cy.wrap($link).click()
        cy.url().should('include', '/viewer/')
        cy.get('[data-test-id="full-preview"]').should('be.visible')
      })
  })
})

7d8d394b985fb3183cc6d730c87a88b97e38323a

@github-actions github-actions bot added the todo label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants