File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/test/java/com/serenitydojo/playwright/toolshop/contact Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1010import org .junit .jupiter .api .BeforeEach ;
1111import org .junit .jupiter .api .DisplayName ;
1212import org .junit .jupiter .api .Test ;
13+ import org .junit .jupiter .api .parallel .Execution ;
14+ import org .junit .jupiter .api .parallel .ExecutionMode ;
1315import org .junit .jupiter .params .ParameterizedTest ;
1416import org .junit .jupiter .params .provider .ValueSource ;
1517
2123
2224@ DisplayName ("Contact form" )
2325@ Feature ("Contact form" )
26+ @ Execution (ExecutionMode .SAME_THREAD )
2427public class ContactFormTest extends PlaywrightTestCase {
2528
2629 ContactForm contactForm ;
@@ -69,6 +72,9 @@ void mandatoryFields(String fieldName) {
6972
7073 contactForm .submitForm ();
7174
75+ if (!page .getByRole (AriaRole .ALERT ).isVisible ()) {
76+ int i = 0 ;
77+ }
7278 // Check the error message for that field
7379 var errorMessage = page .getByRole (AriaRole .ALERT ).getByText (fieldName + " is required" );
7480
You can’t perform that action at this time.
0 commit comments