Skip to content

Commit

Permalink
#203 Change check() and uncheck() to click() in E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Jan 2, 2024
1 parent 69f1a01 commit ec0eb77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/test_commit_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_latest_checkbox(page: Page) -> None:
expect(latest_checkbox).not_to_be_checked()

# Check the latest checkbox
latest_checkbox.check()
latest_checkbox.click()
expect(latest_checkbox).to_be_checked()
expect(commit_select_combobox).to_contain_text(LATEST_COMMIT.date)
expect(commit_select_combobox_input).to_have_value(LATEST_COMMIT.message)
Expand Down Expand Up @@ -121,7 +121,7 @@ def test_latest_unchecked_does_not_update(page: Page) -> None:
commit_select_combobox_input = commit_select_combobox.get_by_role("combobox")
commit_id_item = page.get_by_test_id("parameter-list-item-commit_id")

page.get_by_test_id("latest-checkbox").uncheck()
page.get_by_test_id("latest-checkbox").click()
commit_to_db()

# Commit select contains original latest commit
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_edit_mode_latest_unchecked(page: Page) -> None:
commit_id_input = commit_id_item.get_by_test_id("leaf-input").get_by_role("textbox")

# In edit mode, latest checkbox is unchecked
latest_checkbox.uncheck()
latest_checkbox.click()
page.get_by_test_id("edit-button").click()
expect(latest_checkbox).not_to_be_checked()

Expand Down

0 comments on commit ec0eb77

Please sign in to comment.