refactor(Cypress): installed cypress-cucumber-preprocessor and writed a feature file and it's cycode
This commit is contained in:
@@ -23,4 +23,16 @@
|
||||
//
|
||||
// -- This will overwrite an existing command --
|
||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
||||
import 'cypress-mailosaur';
|
||||
import 'cypress-mailosaur';
|
||||
|
||||
|
||||
Cypress.Commands.add('TokenLogin', (token) => {
|
||||
const autorisation = `bearer ${ token }`;
|
||||
cy.request({
|
||||
method:'POST',
|
||||
url:'/request',
|
||||
headers: {
|
||||
autorisation,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user