refactor: refs #8930 update title link redirection tests for clarity and consistency
This commit is contained in:
parent
4287efa700
commit
ab5d85f392
|
@ -76,22 +76,22 @@ describe('InvoiceInSummary', () => {
|
|||
cy.location().should('match', sectionRegex.basicData);
|
||||
});
|
||||
|
||||
it('Should redirect to invoiceIn vat when clicking on basic-data title link', () => {
|
||||
it('Should redirect to invoiceIn vat when clicking on vat title link', () => {
|
||||
cy.get(titlesLinks.vat).click();
|
||||
cy.location().should('match', sectionRegex.vat);
|
||||
});
|
||||
|
||||
it('Should redirect to invoiceIn due-day when clicking on basic-data title link', () => {
|
||||
it('Should redirect to invoiceIn due-day when clicking on due-day title link', () => {
|
||||
cy.get(titlesLinks.dueDay).click();
|
||||
cy.location().should('match', sectionRegex.dueDay);
|
||||
});
|
||||
|
||||
it('Should redirect to invoiceIn intrastat when clicking on basic-data title link', () => {
|
||||
it('Should redirect to invoiceIn intrastat when clicking on intrastat title link', () => {
|
||||
cy.get(titlesLinks.intrastat).click();
|
||||
cy.location().should('match', sectionRegex.intrastat);
|
||||
});
|
||||
|
||||
it('Should redirect to invoiceIn vehicle when clicking on basic-data title link', () => {
|
||||
it('Should redirect to invoiceIn vehicle when clicking on vehicle title link', () => {
|
||||
cy.get(titlesLinks.vehicle).click();
|
||||
cy.location().should('match', sectionRegex.vehicle);
|
||||
});
|
||||
|
@ -101,7 +101,7 @@ describe('InvoiceInSummary', () => {
|
|||
cy.visit('/#/invoice-in/3/summary');
|
||||
const checkbox = '[data-cy="vnLvIs booked"] > .q-checkbox';
|
||||
cy.dataCy('invoiceInSummary_book').click();
|
||||
cy.dataCy('VnConfirm_confirm').click();
|
||||
cy.clickConfirm();
|
||||
cy.validateCheckbox(checkbox);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue