Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update e2e tests #710

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

update e2e tests #710

wants to merge 6 commits into from

Conversation

colinbowen
Copy link
Collaborator

Changes in this PR

JIRA ticket

Screenshots of UI changes

Before

After

  • Requires env variable(s) to be updated

ltrasca
ltrasca previously approved these changes Dec 18, 2024
page.get_by_label("Email address").fill(username)
page.get_by_label("Password").fill(password)
page.get_by_role("button", name="Sign in").click()

# keycloak local
# page.get_by_label("Username or email").click()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove the comments

print(f"Error creating user: {e}")
raise # Re-raise the exception to fail the test

if not user_id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this block ever get hit if you raise the exception above?

@@ -24,7 +24,9 @@ def test_search_to_record(aau_user_page: Page):

aau_user_page.get_by_role("textbox").first.fill("a")
aau_user_page.get_by_role("button", name="Search").click()
expect(aau_user_page).to_have_url("search_results_summary?query=a")
expect(aau_user_page).to_have_url(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this test is the one about nvaigating to a record i na search journey.

I think the tests in class TestSearchResultsSummary: (and possible the other test classes there) in e2e_tests/test_search.py would still be broken though, will those be done in a separate PR?

We just need to make sure that we cover the 2 ac in the ticket: https://national-archives.atlassian.net/jira/software/projects/AYR/boards/66?selectedIssue=AYR-1236&text=AYR-1236

The AC do have 2 actions and currently that file splits out these scenarios into 2 test classes with the second starting from the summary results page, but do whatever feels best to you.

@colinbowen colinbowen force-pushed the AYR-1236/opensearch-e2e-tests branch from 5b9ffc7 to 85d32bd Compare January 10, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants