Skip to content

Commit 8cb7218

Browse files
authored
test: assert keycloak events instead of ui (#395)
* test: assert keycloak events instead of ui * test: add rest-assured dependency * test: stabilize event assertions * test: make event assertions tolerant to resolved usernames * test: tolerate email send failures in reset event assertions * test: increase reset event wait timeout * test: mock smtp server for reset events * test: fix testcontainers imports * test: drop Playwright login flow * test: follow redirects for login flows * test: follow redirects when loading keycloak forms * test: supply pkce params when loading login form * test: tolerate missing reset link
1 parent 725c693 commit 8cb7218

3 files changed

Lines changed: 500 additions & 95 deletions

File tree

pom.xml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<testcontainers-keycloak.version>3.9.0</testcontainers-keycloak.version>
2929
<rest-assured.version>5.3.2</rest-assured.version>
3030
<slf4j-simple.version>2.0.17</slf4j-simple.version>
31-
<playwright.version>1.56.0</playwright.version>
31+
<jsoup.version>1.18.3</jsoup.version>
3232
<testcontainers.version>1.21.3</testcontainers.version>
3333
</properties>
3434

@@ -57,6 +57,12 @@
5757
</exclusion>
5858
</exclusions>
5959
</dependency>
60+
<dependency>
61+
<groupId>org.subethamail</groupId>
62+
<artifactId>subethasmtp</artifactId>
63+
<version>3.1.7</version>
64+
<scope>test</scope>
65+
</dependency>
6066
<dependency>
6167
<groupId>com.github.dasniko</groupId>
6268
<artifactId>testcontainers-keycloak</artifactId>
@@ -82,9 +88,15 @@
8288
<scope>test</scope>
8389
</dependency>
8490
<dependency>
85-
<groupId>com.microsoft.playwright</groupId>
86-
<artifactId>playwright</artifactId>
87-
<version>${playwright.version}</version>
91+
<groupId>io.rest-assured</groupId>
92+
<artifactId>rest-assured</artifactId>
93+
<version>${rest-assured.version}</version>
94+
<scope>test</scope>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.jsoup</groupId>
98+
<artifactId>jsoup</artifactId>
99+
<version>${jsoup.version}</version>
88100
<scope>test</scope>
89101
</dependency>
90102
</dependencies>

0 commit comments

Comments
 (0)