invoiceninja/tests/cypress/support/assertions.js

4 lines
129 B
JavaScript
Raw Permalink Normal View History

2023-01-25 07:15:54 +11:00
Cypress.Commands.add('assertRedirect', path => {
cy.location('pathname').should('eq', `/${path}`.replace(/^\/\//, '/'));
});