-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0cde22
commit 594c59d
Showing
4 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
from flask import Flask | ||
from playwright.sync_api import Page | ||
|
||
from tests.e2e.app_client import AppClient | ||
from tests.e2e.app_client import AppClient, UserRepr | ||
from tests.e2e.oidc_server.users import StubUser | ||
from tests.e2e.oidc_server.web_client import OidcClient | ||
from tests.e2e.pages import SchemesPage | ||
|
@@ -15,7 +15,7 @@ def oidc_user(self, oidc_client: OidcClient) -> None: | |
oidc_client.add_user(StubUser("boardman", "[email protected]")) | ||
|
||
def test_schemes_when_authorized(self, app_client: AppClient, app: Flask, page: Page) -> None: | ||
app_client.add_user("[email protected]") | ||
app_client.add_user(UserRepr(email="[email protected]")) | ||
|
||
schemes_page = SchemesPage(app, page).open() | ||
|
||
|
@@ -27,7 +27,7 @@ def test_schemes_when_unauthorized(self, app: Flask, page: Page) -> None: | |
assert unauthorized_page.visible() | ||
|
||
def test_header_sign_out(self, app_client: AppClient, app: Flask, page: Page) -> None: | ||
app_client.add_user("[email protected]") | ||
app_client.add_user(UserRepr(email="[email protected]")) | ||
schemes_page = SchemesPage(app, page).open() | ||
|
||
start_page = schemes_page.header.sign_out() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
from flask import Flask | ||
from playwright.sync_api import Page | ||
|
||
from tests.e2e.app_client import AppClient | ||
from tests.e2e.app_client import AppClient, UserRepr | ||
from tests.e2e.oidc_server.users import StubUser | ||
from tests.e2e.oidc_server.web_client import OidcClient | ||
from tests.e2e.pages import StartPage | ||
|
@@ -28,7 +28,7 @@ def test_start_shows_login(self, app: Flask, page: Page) -> None: | |
class TestAuthenticated: | ||
def test_start_shows_schemes(self, oidc_client: OidcClient, app_client: AppClient, app: Flask, page: Page) -> None: | ||
oidc_client.add_user(StubUser("boardman", "[email protected]")) | ||
app_client.add_user("[email protected]") | ||
app_client.add_user(UserRepr(email="[email protected]")) | ||
start_page = StartPage(app, page).open() | ||
start_page.start() | ||
|
||
|