Skip to content

adds new audiobook test and reorganizes tests - #2838

Merged
omehes merged 45 commits into
mainfrom
audio
Apr 13, 2026
Merged

adds new audiobook test and reorganizes tests#2838
omehes merged 45 commits into
mainfrom
audio

Conversation

@omehes

@omehes omehes commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

@omehes
omehes requested a review from a team as a code owner March 31, 2026 15:06
@omehes
omehes requested a review from TomWoodward March 31, 2026 15:06
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl March 31, 2026 15:06 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl March 31, 2026 15:37 Inactive
@omehes
omehes requested a review from Copilot March 31, 2026 17:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a new audiobook test and reorganizes existing tests to better reflect their purpose and scope. The changes include creating a dedicated test file for accessibility help in the UI tests, moving tests to more appropriate test files, and adding support methods to the page object class for audiobook functionality testing.

Changes:

  • Creates a new test file test_accessibility_help.py for UI accessibility testing
  • Moves test_book_title_links_to_books_detail_page from test_details_page.py to test_subjects_books_pages.py (more appropriate location)
  • Moves test_accessibility_help from test_details_page.py to the new dedicated UI test file
  • Adds new audiobook link test to test_details_page.py with supporting methods in the page object

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
e2e_tests/e2e/ui/test_accessibility_help.py New test file for accessibility help functionality testing
e2e_tests/e2e/ui/pages/home.py Added audiobook-related methods: audiobook_link_is_visible() and audiobook_link_purchase_options property
e2e_tests/e2e/osweb/test_details_page.py Removed test_book_title_links_to_books_detail_page and test_accessibility_help; added test_audiobook_link
e2e_tests/e2e/osweb/test_subjects_books_pages.py Added test_book_title_links_to_books_detail_page (moved from test_details_page.py)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl March 31, 2026 21:07 Inactive
@omehes
omehes requested a review from Copilot March 31, 2026 21:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if not diffs:
print("------>>>>> NO DIFFERENCES <<<<<------")
else:
print_diffs(diffs)

Copilot AI Mar 31, 2026

Copy link

Choose a reason for hiding this comment

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

The test function is missing an assertion or failure case. When differences are found in the docx files, the test should fail rather than just printing the diffs. The test currently prints the diffs and exits successfully even if there are differences, which defeats the purpose of a test.

Suggested change
print_diffs(diffs)
print_diffs(diffs)
pytest.fail("Differences found between DOCX/ZIP contents. See printed diffs above.")

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no need for this

@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 1, 2026 23:10 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 2, 2026 00:26 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 2, 2026 21:49 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 3, 2026 20:58 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 8, 2026 17:15 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 13:20 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 17:58 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 17:59 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 17:59 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 18:03 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 18:55 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 18:56 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 18:56 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:04 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:05 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:08 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:13 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:13 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:14 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:14 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 9, 2026 19:14 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 10, 2026 10:44 Inactive
@TomWoodward
TomWoodward temporarily deployed to rex-web-audio-fuqvraywvrkpmwrl April 13, 2026 13:29 Inactive

@TomWoodward TomWoodward left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the audiobook thing is fine, i think the other stuff you changed i've commented on in other prs (i'm not sure the docx tests are worth it)

@omehes
omehes merged commit 593d582 into main Apr 13, 2026
7 checks passed
@omehes
omehes deleted the audio branch April 13, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants