feat(Cypress-Gherkin): Implemented the whole test in cypress and updated documentation accordingly

This commit is contained in:
Simon Priet
2021-09-08 12:25:55 +02:00
parent 68acc2a949
commit ed9a550d5e
12 changed files with 269 additions and 317 deletions

View File

@@ -22,17 +22,4 @@
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
import 'cypress-mailosaur';
Cypress.Commands.add('TokenLogin', (token) => {
const autorisation = `bearer ${ token }`;
cy.request({
method:'POST',
url:'/request',
headers: {
autorisation,
}
});
})
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })