Skip to content

Commit

Permalink
ICMSLST-3019 - Fix end to end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspp committed Oct 16, 2024
1 parent 862b2e7 commit 18c1c2d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def fa_dfl_create(page: Page, sample_upload_file: types.FilePayload) -> int:
page.get_by_label("Deactivated Certificate Reference").click()
page.get_by_label("Deactivated Certificate Reference").fill("test")

page.get_by_role("combobox", name="Issuing Country").select_option("23")
page.get_by_role("combobox", name="Issuing Country").select_option("131") # Spain
page.get_by_label("Document").set_input_files(sample_upload_file)
page.get_by_role("button", name="Save").click()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def fa_oil_create(page: Page, sample_upload_file: types.FilePayload) -> int:
page.get_by_label("Registration Number").fill("Registration Number value")
page.get_by_label("Street and Number").click()
page.get_by_label("Street and Number").fill("1 street")
page.get_by_label("Town/City").click()
page.get_by_label("Town/City").fill("Town")
page.get_by_label("Town / City").click()
page.get_by_label("Town / City").fill("Town")
page.get_by_label("Postcode").click()
page.get_by_label("Postcode").fill("s1122z")
page.get_by_label("Region").click()
Expand All @@ -109,8 +109,8 @@ def fa_oil_create(page: Page, sample_upload_file: types.FilePayload) -> int:
page.get_by_label("Surname").fill("Surname value")
page.get_by_label("Street and Number").click()
page.get_by_label("Street and Number").fill("1 Street")
page.get_by_label("Town/City").click()
page.get_by_label("Town/City").fill("Town")
page.get_by_label("Town / City").click()
page.get_by_label("Town / City").fill("Town")
page.get_by_label("Postcode").click()
page.get_by_label("Postcode").fill("S12ZZ") # /PS-IGNORE
page.get_by_label("Region").click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def fa_sil_create(page: Page, sample_upload_file: types.FilePayload) -> int:
page.get_by_label("Registration Number").fill("Registration number")
page.get_by_label("Street and Number").click()
page.get_by_label("Street and Number").fill("1 street")
page.get_by_label("Town/City").click()
page.get_by_label("Town/City").fill("Town")
page.get_by_label("Town / City").click()
page.get_by_label("Town / City").fill("Town")
page.get_by_label("Postcode").click()
page.get_by_label("Postcode").fill("S112ZZ") # /PS-IGNORE
page.get_by_label("Region").click()
Expand Down
10 changes: 5 additions & 5 deletions web/end_to_end/cat/test_create_cfs_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def test_can_create_cfs_cat(pages: conftest.UserPages) -> None:
page.get_by_text("Manual").click()
page.get_by_label("Postcode").click()
page.get_by_label("Postcode").fill("s111S")
page.get_by_label("Address", exact=True).click()
page.get_by_label("Address", exact=True).fill("Address line one")
page.get_by_label("Address optional").click()
page.get_by_label("Address optional").fill("Address line one")
page.get_by_role("button", name="Save").click()

# Add, edit and delete a few products.
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_can_create_cfs_cat(pages: conftest.UserPages) -> None:
page.get_by_label("Close this message").click()


def test_can_create_cfs_cat_biocidal_schdedule(pages: conftest.UserPages) -> None:
def test_can_create_cfs_cat_biocidal_schedule(pages: conftest.UserPages) -> None:
with pages.exp_page() as page:
# Create a new CFS Certificate Application Template
page.get_by_role("link", name="Admin").click()
Expand Down Expand Up @@ -218,8 +218,8 @@ def test_can_create_cfs_cat_biocidal_schdedule(pages: conftest.UserPages) -> Non
page.get_by_text("Manual").click()
page.get_by_label("Postcode").click()
page.get_by_label("Postcode").fill("s111S")
page.get_by_label("Address", exact=True).click()
page.get_by_label("Address", exact=True).fill("Address line one")
page.get_by_label("Address optional").click()
page.get_by_label("Address optional").fill("Address line one")
page.get_by_role("button", name="Save").click()

# Add a product to schedule 2
Expand Down

0 comments on commit 18c1c2d

Please sign in to comment.