4 lines
129 B
JavaScript
4 lines
129 B
JavaScript
|
|
Cypress.Commands.add('assertRedirect', path => {
|
||
|
|
cy.location('pathname').should('eq', `/${path}`.replace(/^\/\//, '/'));
|
||
|
|
});
|