Compare commits

..

No commits in common. "bc6e1bc12e11b9bd68f5da4fd0f2b1e01e75cd7a" and "d9226abf8541b316de39c8a0971fea6d7d8e300a" have entirely different histories.

17634 changed files with 1406 additions and 750278 deletions

2
.vscode/launch.json vendored
View File

@ -6,7 +6,7 @@
"configurations": [
{
"name": "Test Cypress via NPM",
"cwd": "${workspaceFolder}",
"cwd": "${workspaceFolder}/cypress_app",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",

View File

@ -1,3 +0,0 @@
{
"baseUrl": "https://app.post-prod.lifen.fr"
}

View File

@ -1,5 +0,0 @@
{
"login": "candidature-qa@example.org",
"mdp": "kHwWawhH5ADNuFb",
"phone": "0643779588"
}

View File

@ -1,49 +0,0 @@
/// <reference types="cypress" />
context('The login page', () => {
describe('Test the login page', () => {
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");
});
});
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");
});
});

View File

@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

Some files were not shown because too many files have changed in this diff Show More