test: refs #8441 ensure buttons are visible before clicking in vehicle summary tests
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
b950b4845b
commit
49dd8e2432
|
@ -43,7 +43,9 @@ describe('Vehicle summary', () => {
|
|||
.invoke('text')
|
||||
.then((supplierName) => {
|
||||
supplierName = supplierName.trim();
|
||||
cy.get(selectors.descriptorGoToSummaryBtn).click();
|
||||
cy.get(selectors.descriptorGoToSummaryBtn)
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.url().should('match', supplierSummaryUrlRegex);
|
||||
cy.containContent(selectors.descriptorTitle, supplierName);
|
||||
});
|
||||
|
@ -55,8 +57,10 @@ describe('Vehicle summary', () => {
|
|||
.invoke('text')
|
||||
.then((supplierName) => {
|
||||
supplierName = supplierName.trim();
|
||||
cy.get(selectors.descriptorOpenSummaryBtn).click();
|
||||
cy.get(selectors.summaryGoToSummaryBtn).click();
|
||||
cy.get(selectors.descriptorOpenSummaryBtn)
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.get(selectors.summaryGoToSummaryBtn).should('be.visible').click();
|
||||
cy.url().should('match', supplierSummaryUrlRegex);
|
||||
cy.containContent(selectors.descriptorTitle, supplierName);
|
||||
});
|
||||
|
@ -70,7 +74,9 @@ describe('Vehicle summary', () => {
|
|||
.invoke('text')
|
||||
.then((supplierName) => {
|
||||
supplierName = supplierName.trim();
|
||||
cy.get(selectors.descriptorGoToSummaryBtn).click();
|
||||
cy.get(selectors.descriptorGoToSummaryBtn)
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.url().should('match', supplierSummaryUrlRegex);
|
||||
cy.containContent(selectors.descriptorTitle, supplierName);
|
||||
});
|
||||
|
@ -82,8 +88,10 @@ describe('Vehicle summary', () => {
|
|||
.invoke('text')
|
||||
.then((supplierName) => {
|
||||
supplierName = supplierName.trim();
|
||||
cy.get(selectors.descriptorOpenSummaryBtn).click();
|
||||
cy.get(selectors.summaryGoToSummaryBtn).click();
|
||||
cy.get(selectors.descriptorOpenSummaryBtn)
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.get(selectors.summaryGoToSummaryBtn).should('be.visible').click();
|
||||
cy.url().should('match', supplierSummaryUrlRegex);
|
||||
cy.containContent(selectors.descriptorTitle, supplierName);
|
||||
});
|
||||
|
@ -97,7 +105,9 @@ describe('Vehicle summary', () => {
|
|||
.invoke('text')
|
||||
.then((invoice) => {
|
||||
invoice = invoice.trim();
|
||||
cy.get(selectors.descriptorGoToSummaryBtn).click();
|
||||
cy.get(selectors.descriptorGoToSummaryBtn)
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.url().should('match', invoiceInSummaryUrlRegex);
|
||||
cy.containContent(selectors.descriptorTitle, invoice);
|
||||
});
|
||||
|
@ -109,8 +119,10 @@ describe('Vehicle summary', () => {
|
|||
.invoke('text')
|
||||
.then((invoice) => {
|
||||
invoice = invoice.trim();
|
||||
cy.get(selectors.descriptorOpenSummaryBtn).click();
|
||||
cy.get(selectors.summaryGoToSummaryBtn).click();
|
||||
cy.get(selectors.descriptorOpenSummaryBtn)
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.get(selectors.summaryGoToSummaryBtn).should('be.visible').click();
|
||||
cy.url().should('match', invoiceInSummaryUrlRegex);
|
||||
cy.containContent(selectors.descriptorTitle, invoice);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue