refactor(Cypress): Init a version of the test exam with pure cypress (no Gherkin)

This commit is contained in:
Simon Priet
2021-09-08 12:31:56 +02:00
parent 68acc2a949
commit 86a3ea7108
63 changed files with 6 additions and 4946 deletions

View File

@@ -24,15 +24,3 @@
// -- 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,
}
});
})