Skip to content

Commit

Permalink
Fix E2E tests when datasource is 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicky Gerritsen committed Mar 13, 2024
1 parent 9f4dcc0 commit bfdca61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/tests/E2E/Controller/ControllerRolesTraversalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ protected function crawlPageGetLinks(string $url, int $statusCode, string $skip)
} elseif (($response->getStatusCode() === 302 ) && $response->isRedirection()) {
if (str_contains($url, '/jury/external-contest')) {
self::assertTrue(str_contains($response->headers->get('location'), '/jury/external-contest/manage'));
} elseif (str_contains($url, '/jury/shadow-differences')) {
self::assertTrue(str_contains($response->headers->get('location'), '/jury'));
} else {
self::assertTrue(str_contains($response->headers->get('location'), '/public'));
}
Expand Down

0 comments on commit bfdca61

Please sign in to comment.