Skip to content

Instantly share code, notes, and snippets.

@ivan-hilckov
Created October 25, 2018 15:18
Show Gist options
  • Save ivan-hilckov/fb1e4b45713b61ce5693dcf4c7cfae01 to your computer and use it in GitHub Desktop.
Save ivan-hilckov/fb1e4b45713b61ce5693dcf4c7cfae01 to your computer and use it in GitHub Desktop.
Спека для страницы /project/:projectId
/// <reference types="Cypress" />
import { URLS, PATH_NAME } from '../../src/constants/path'
const projectId = 3
const ids = {
layer: 'layer-add',
}
describe('Project', () => {
beforeEach(() => {
cy.signin().project(projectId)
})
it('Project has button "add layer"', () => {
cy.getByTestId(ids.layer)
.should('be.visible')
.click()
cy.url().should('include', URLS[PATH_NAME.layer]({ projectId }))
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment