Skip to content

Conversation

@omehes
Copy link
Contributor

@omehes omehes commented Feb 10, 2026

@omehes omehes requested a review from a team as a code owner February 10, 2026 18:13
@omehes omehes requested a review from Dantemss February 10, 2026 18:13
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 10, 2026 18:13 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 10, 2026 20:01 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 17:05 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 17:36 Inactive
await self.page.locator(
"p:has-text('formula. Repeat with values')"
).select_text()
await self.page.locator("#fs-id1165134108431").select_text()
Copy link
Member

Choose a reason for hiding this comment

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

This method name in home.py is too generic for what it does which is selecting a specific element in a specific page of a specific book...

However, it would probably be an acceptable name if you just moved the method to the one test file that uses it, which is test_highlight_in_show_hide_solution.py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

await self.page.locator("#fs-id1165134108429").get_by_title(
"Show/Hide Solution"
await self.page.locator(
'#fs-id1165134108429[aria-label="Show/Hide Solution"]'
Copy link
Member

Choose a reason for hiding this comment

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

Same thing here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this I keep as is as there are 9 uses of this

@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 18:01 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 19:33 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 20:31 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 21:04 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 21:12 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 21:37 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 22:00 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 22:19 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 22:38 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 11, 2026 23:20 Inactive
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 01:34 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 02:07 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 02:34 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 13:51 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 13:53 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 14:33 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 15:45 Abandoned
@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 16:43 Abandoned
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- run: python -m pip install --upgrade pip
- run: pip install pytest-playwright
Copy link
Member

Choose a reason for hiding this comment

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

You already added this package to e2e_tests/requirements.txt so this line shouldn't be needed, it should install in the line below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

async def clear_all_blockers(self):
await self.page.evaluate(
"""() => {
document.querySelectorAll('div[class*="ClickBlocker"]').forEach(el => el.remove());
Copy link
Member

Choose a reason for hiding this comment

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

Well my concern with removing it this way instead of clicking the X button is that you could leave other junk related to the modal around, which may interfere with tests in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I leave it for now but revisit it again

await home.click_show_hide_solution_link()

await home.click_text_in_solution_block()
await home.clear_all_blockers()
Copy link
Member

Choose a reason for hiding this comment

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

I think the blocker is not related to clicking the solution link, it's related to loading the page, but maybe it has a delay, so I worry that this is flaky.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I leave this as well for now and see how it goes

@TomWoodward TomWoodward requested a deployment to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 20:24 Abandoned
@TomWoodward TomWoodward temporarily deployed to rex-web-newhi-2oayfkhyl3vyhinx February 12, 2026 21:08 Inactive
@omehes omehes merged commit 688d46e into main Feb 12, 2026
8 checks passed
@omehes omehes deleted the newhi branch February 12, 2026 21:29
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.

4 participants