feat(Cypress-Gherkin): ✨ Implemented the whole test in cypress and updated documentation accordingly
This commit is contained in:
@@ -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) => { ... })
|
Reference in New Issue
Block a user