fix(spec): refs #7001 fix som e2e spec
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2024-03-20 08:03:25 +01:00
parent 22eef14bb3
commit 25aea39bfc
2 changed files with 7 additions and 4 deletions

View File

@ -4,7 +4,7 @@ describe('InvoiceInList', () => {
const firstChipId =
':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content';
const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)';
const summaryHeaders = '.summaryBody .header';
const summaryHeaders = '.summaryBody .header-link';
const screen = '.q-page-container > .q-drawer-container > .fullscreen';
beforeEach(() => {
@ -17,7 +17,7 @@ describe('InvoiceInList', () => {
cy.get(firstChipId)
.invoke('text')
.then((content) => {
const id = content.substring(4);
const id = content.replace(/\D/g, '');
cy.get(firstCard).click();
cy.url().should('include', `/invoice-in/${id}/summary`);
});

View File

@ -16,7 +16,10 @@ describe('WorkerList', () => {
it('should open the worker summary', () => {
cy.openListSummary(0);
cy.get('.summaryHeader div').should('have.text', '1110 - Jessica Jones');
cy.get('.summary .header-link').eq(0).invoke('text').should('include', 'Basic data');
cy.get('.summary .header-link').eq(1).should('have.text', 'User data');
cy.get('.summary .header-link')
.eq(0)
.invoke('text')
.should('include', 'Basic data');
cy.get('.summary .header-link').eq(1).should('have.text', 'User data ');
});
});