Created
May 25, 2019 21:37
-
-
Save CoinBR/e1cdc7250ae00ce0339c651f4b6861f7 to your computer and use it in GitHub Desktop.
visual-teste-073
This file contains 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
describe('Visualizar Projeto', () => { | |
describe('Usuário Deslogado', () => { | |
it('Visualizar um projeto qualquer', () => { | |
cy.visit('http://bit.ly/visual-teste-braskem') | |
cy.url().should('eq', 'https://visualthinkerapp.firebaseapp.com/login') | |
}) | |
}) | |
describe('Usuário de Testes', () => { | |
beforeEach( () => { | |
cy.visit('https://visualthinkerapp.firebaseapp.com/login') | |
cy.get('form').within( () => { | |
cy.get('input').first().type("vt-teste@yandex.com") | |
cy.get('input').last().type("muitasbolas") | |
cy.get('button').first().click() | |
cy.wait(11 * 1000) | |
}) | |
}) | |
it('Clickar em Projeto na Workspace', () => { | |
cy.get('#cards').within( () => { | |
cy.get('a').last().click() | |
}) | |
cy.wait(11 * 1000) | |
cy.contains('Braskem') | |
}) | |
it('Projeto Criado por ele: OK', () => { | |
cy.visit('https://visualthinkerapp.firebaseapp.com/get-project/-LewC_37MLuEm2qMWrvh') | |
cy.contains("Braskem") | |
}) | |
it('Projeto Compartilhado com Ele: OK', () => { | |
cy.visit('https://visualthinkerapp.firebaseapp.com/get-project/-LewAJK94ZSy1vLVG4Qm') | |
cy.contains("Galeteria") | |
}) | |
it('Projeto Que ele Excluiu: Erro 404', () => { | |
cy.visit('https://visualthinkerapp.firebaseapp.com/get-project/-Lff0tK7_WiyVLpbg4RN') | |
cy.url().should('eq', 'https://visualthinkerapp.firebaseapp.com/404') | |
}) | |
it('Projeto não compartilhado de Outro Usuário', () => { | |
cy.visit('https://visualthinkerapp.firebaseapp.com/get-project/-Lf0pE8aIKhAQNi3nXLe') | |
cy.url().should('eq', 'https://visualthinkerapp.firebaseapp.com/404') | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment