Add a timeout when getting the progress percentage

This commit is contained in:
Mole
2020-10-08 15:19:54 +02:00
parent 3c29982c09
commit c8018ed00a

View File

@@ -71,7 +71,7 @@ function resetTourData() {
function runBackOfficeIntroTour(percentageComplete, buttonText, timeout) {
cy.get('[data-element="help-tours"]').should("be.visible");
cy.get('[data-element="help-tours"]').click();
cy.get('[data-element="help-tours"] .umb-progress-circle', { timeout: timeout }).get('[percentage]').contains(percentageComplete + '%');
cy.get('[data-element="help-tours"] .umb-progress-circle', { timeout: timeout }).get('[percentage]').contains(percentageComplete + '%', {timeout: timeout});
cy.get('[data-element="help-tours"]').click();
cy.get('[data-element="tour-umbIntroIntroduction"] .umb-button').should("be.visible");
cy.get('[data-element="tour-umbIntroIntroduction"] .umb-button').contains(buttonText);