Created
October 25, 2018 15:18
-
-
Save ivan-hilckov/fb1e4b45713b61ce5693dcf4c7cfae01 to your computer and use it in GitHub Desktop.
Спека для страницы /project/:projectId
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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