chore: add test case for multiple users solving lessons (#2043)

This commit is contained in:
Nanne Baars 2025-02-28 20:56:15 +01:00 committed by GitHub
parent 95dcc56a19
commit 16b7a13de8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,4 +66,18 @@ public class HttpBasicsLessonUITest extends PlaywrightTest {
assertThat(lessonPage.getAssignmentOutput()).containsText("Try again, name cannot be empty.");
}
@Test
@Order(4)
@DisplayName(
"Given Sylvester solves the first assignment when Tweety logs in then the first assignment should NOT be solved")
void shouldNotSolvePage1(Browser browser) {
lessonPage.navigateTo(2);
lessonPage.getEnterYourName().fill("John Doe");
lessonPage.getGoButton().click();
var tweetyLessonPage = new HttpBasicsLessonPage(Authentication.tweety(browser));
tweetyLessonPage.open(new LessonName("HttpBasics"));
Assertions.assertThat(tweetyLessonPage.noAssignmentsCompleted()).isTrue();
}
}