Skip to content

Commit 1b0911f

Browse files
authored
Merge pull request #11151 from umbraco/v9/bugfix/fixed_tabs_test_on_every_resolution
v9: fixed tabs test on every resolution
2 parents ee132af + 4a1dffc commit 1b0911f

File tree

1 file changed

+18
-3
lines changed
  • src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tabs

1 file changed

+18
-3
lines changed

src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tabs/tabs.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,12 @@ context('Tabs', () => {
379379
cy.saveDocumentType(tabsDocType);
380380
OpenDocTypeFolder();
381381
cy.get('[alias="reorder"]').click();
382-
cy.get('.umb-group-builder__tabs-overflow--right > .caret').click().click();
382+
cy.get('body')
383+
.then(($body) => {
384+
while($body.find('.umb-group-builder__tabs-overflow--right > .caret').hasClass('active')){
385+
cy.click();
386+
}
387+
});
383388
cy.get('.umb-group-builder__tab').last().click();
384389
cy.get('.umb-group-builder__group-title-icon').last().trigger('mousedown', { which: 1 })
385390
cy.get('.umb-group-builder__tab').eq(1).trigger('mousemove', {which: 1, force: true});
@@ -426,7 +431,12 @@ context('Tabs', () => {
426431
OpenDocTypeFolder();
427432
cy.get('[alias="reorder"]').click();
428433
//Scroll right so we can see tab 2
429-
cy.get('.umb-group-builder__tabs-overflow--right > .caret').click().click();
434+
cy.get('body')
435+
.then(($body) => {
436+
while($body.find('.umb-group-builder__tabs-overflow--right > .caret').hasClass('active')){
437+
cy.click();
438+
}
439+
});
430440
cy.get('.umb-group-builder__tab-title-icon').eq(1).trigger('mousedown', { which: 1 })
431441
cy.get('.umb-group-builder__tab').eq(1).trigger('mousemove', {which: 1, force: true});
432442
cy.get('.umb-group-builder__tab').eq(1).should('have.class', 'is-active').trigger('mouseup', {force:true});
@@ -473,7 +483,12 @@ context('Tabs', () => {
473483
OpenDocTypeFolder();
474484
cy.get('[alias="reorder"]').click();
475485
//Scroll so we are sure we see tab 2
476-
cy.get('.umb-group-builder__tabs-overflow--right > .caret').click().click();
486+
cy.get('body')
487+
.then(($body) => {
488+
while($body.find('.umb-group-builder__tabs-overflow--right > .caret').hasClass('active')){
489+
cy.click();
490+
}
491+
});
477492
//Navigate to tab 2
478493
cy.get('.umb-group-builder__tab').last().click();
479494
cy.get('.umb-group-builder__property-meta > .flex > .icon').eq(1).trigger('mousedown', {which: 1})

0 commit comments

Comments
 (0)