File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/test/java/com/serenitydojo/playwright/toolshop/catalog/pageobjects Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3232 <dependency >
3333 <groupId >com.microsoft.playwright</groupId >
3434 <artifactId >playwright</artifactId >
35- <version >1.48 .0</version >
35+ <version >1.57 .0</version >
3636 <scope >test</scope >
3737 </dependency >
3838 <dependency >
6868 <dependency >
6969 <groupId >org.assertj</groupId >
7070 <artifactId >assertj-core</artifactId >
71- <version >3.26.3 </version >
71+ <version >3.27.6 </version >
7272 </dependency >
7373 <dependency >
7474 <groupId >com.deque.html.axe-core</groupId >
Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ public void searchBy(String keyword) {
1515 page .getByPlaceholder ("Search" ).fill (keyword );
1616 page .getByRole (AriaRole .BUTTON , new Page .GetByRoleOptions ().setName ("Search" )).click ();
1717 });
18+ page .waitForTimeout (250 );
1819 }
1920
2021 public void clearSearch () {
2122 page .waitForResponse ("**/products**" , () -> {
2223 page .getByTestId ("search-reset" ).click ();
2324 });
25+ page .waitForTimeout (250 );
2426 }
2527
2628 public void filterBy (String filterName ) {
@@ -30,7 +32,7 @@ public void filterBy(String filterName) {
3032 }
3133
3234 public void sortBy (String sortFilter ) {
33- page .waitForResponse ("**/products?sort=**" , () -> {
35+ page .waitForResponse ("**/products?page=0& sort=**" , () -> {
3436 page .getByTestId ("sort" ).selectOption (sortFilter );
3537 });
3638 page .waitForTimeout (250 );
You can’t perform that action at this time.
0 commit comments