File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
src/test/java/com/serenitydojo/playwright Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11package com .serenitydojo .playwright ;
22
3- import com .microsoft .playwright .* ;
4- import com .microsoft .playwright .assertions . PlaywrightAssertions ;
3+ import com .microsoft .playwright .Locator ;
4+ import com .microsoft .playwright .Page ;
55import com .microsoft .playwright .junit .UsePlaywright ;
6- import com .microsoft .playwright .options .AriaRole ;
7- import com .microsoft .playwright .options .LoadState ;
8- import com .microsoft .playwright .options .SelectOption ;
96import org .assertj .core .api .Assertions ;
10- import org .junit .jupiter .api .*;
7+ import org .junit .jupiter .api .DisplayName ;
8+ import org .junit .jupiter .api .Test ;
119
12- import java .util .Arrays ;
1310import java .util .List ;
14- import java .util .regex .Pattern ;
1511
1612import static com .microsoft .playwright .assertions .PlaywrightAssertions .assertThat ;
1713
@@ -28,7 +24,7 @@ void searchForPliers(Page page) {
2824 page .getByPlaceholder ("Search" ).press ("Enter" );
2925
3026 page .waitForLoadState ();
31- page .waitForCondition ( () -> page .getByTestId ("product-name" ).count () > 0 );
27+ page .waitForCondition (() -> page .getByTestId ("product-name" ).count () > 0 );
3228
3329 List <String > products = page .getByTestId ("product-name" ).allTextContents ();
3430 Assertions .assertThat (products .get (0 )).containsIgnoringCase ("Pliers" );
You can’t perform that action at this time.
0 commit comments