refactor(Cypress): add nodemodules

This commit is contained in:
2021-09-02 17:18:41 +02:00
parent 1aa57bbd0a
commit bc6e1bc12e
4238 changed files with 340975 additions and 8 deletions

View File

@@ -1,16 +1,49 @@
/// <reference types="cypress" />
context('The login page', () => {
describe('checking the inbox website', () => {
describe('Test the login page', () => {
it('Check the login page', function() {
cy.visit('https://app.post-prod.lifen.fr/');
cy.get('#email').should("have.attr", "type", "email");
cy.get('#password').should("have.attr", "type", "password");
it('Access the webpage', function() {
cy.visit('/');
cy.get('#email').should("have.attr", "type", "email");
cy.get('#password').should("have.attr", "type", "password");
//cy.get('#password').type(mdp);
});
it('Log an invalid email', function() {
cy.visit('/');
cy.get('#email').type("not an email");
cy.get('#password').type("somepasseword {enter}");
cy.url().should('include', 'login?');
});
it('Log an unexisting user', function() {
cy.visit('/');
cy.get('#email').type("toto@yopmail.com");
cy.get('#password').type("somepasseword {enter}");
cy.get('#error-message').should("have.class", "alert alert-danger").should("be.visible");
});
//cy.get('#email').type(login);
//cy.get('#password').type(mdp);
});
describe("It send an SMS", function() {
it('Log the candidate user', function(){
cy.visit('/login');
cy.get('#email').type("candidature-qa@example.org");
cy.get('#password').type("kHwWawhH5ADNuFb");
});
});
});
context("The inbox page", function() {
describe("", function() {
it("It load the inbox page of a valid user");
it("It checks for messages in the inbox");
it("Open the message for data that has been injected previously");
});
});