Skip to content

Commit

Permalink
fix e2e - use 'pagination' as default mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Dec 19, 2023
1 parent 97e3652 commit d604156
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions e2e-pw/src/oss/specs/groups/dynamic-groups.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ extensionDatasetNamePairs.forEach(([extension, datasetName]) => {
await grid.assert.isEntryCountTextEqualTo("10 groups");

await grid.openFirstSample();
await modal.group.setDynamicGroupsNavigationMode("carousel");
await modal.sidebar.assert.verifySidebarEntryText("dynamic_group", "0");
await modal.scrollCarousel();
await modal.navigateCarousel(4, true);
Expand All @@ -77,15 +78,15 @@ extensionDatasetNamePairs.forEach(([extension, datasetName]) => {
});
await grid.openFirstSample();

await modal.group.assert.assertIsCarouselVisible();
await modal.group.assert.assertIsPaginationBarNotVisible();

await modal.group.setDynamicGroupsNavigationMode("pagination");

await modal.group.assert.assertIsPaginationBarVisible();
await modal.group.assert.assertIsCarouselNotVisible();

await modal.group.dynamicGroupPagination.assert.verifyPage(1);
await modal.group.dynamicGroupPagination.assert.verifyPage(10);

await modal.group.setDynamicGroupsNavigationMode("carousel");

await modal.group.assert.assertIsCarouselVisible();
await modal.group.assert.assertIsPaginationBarNotVisible();
});
});

0 comments on commit d604156

Please sign in to comment.