-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added end to end test for caseworker
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
import os | ||
import pytest | ||
|
||
from playwright.sync_api import expect | ||
|
||
from e2e.utils import get_base_url, retry | ||
from e2e.utils import get_base_url, retry, login_user | ||
|
||
BASE_URL = get_base_url() | ||
|
||
@retry() | ||
@pytest.mark.order(3) | ||
def test_verify_repr_invite(page): | ||
pass | ||
email = os.environ.get("TEST_USER_EMAIL") | ||
password = os.environ.get("TEST_USER_PASSWORD") | ||
case_id = os.environ.get("TEST_REPR_INVITE_CASE_ID") | ||
company_name = os.environ.get("TEST_PEPR_COMPANY_NAME") | ||
|
||
login_user(page, email, password) | ||
|
||
page.wait_for_timeout(200) | ||
|
||
page.get_by_role("link", name=case_id).click() | ||
page.get_by_role("link", name="Parties").click() | ||
page.get_by_role("link", name=f"Expand {company_name}").click() | ||
page.get_by_role("button", name="Alert Verification process").click() | ||
page.get_by_role("link", name=f"Verify {company_name}").click() | ||
page.locator("input[name=\"deficiency_notice_params_org_verify\"]").nth(1).check() | ||
page.get_by_role("button", name="Save").click() | ||
page.get_by_role("link", name="Choose to accept into case").click() | ||
page.get_by_role("alert").locator("form div").filter(has_text=f"Do you want to accept {company_name.split()[0]}").nth(1).click() | ||
page.locator("#accepted-radio").check() | ||
page.get_by_role("combobox").select_option("domestic_producer") | ||
page.get_by_role("button", name="Save").click() | ||
page.get_by_role("button", name="OK").click() | ||
page.get_by_role("link", name="Notify contact").click() | ||
page.get_by_role("button", name="Send the notification").click() | ||
page.get_by_role("button", name="Exit").click() |