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

LIBAAEC-48 WIP Libaaec 48 fix broken feature tests due to chrome update #491

Open
wants to merge 72 commits into
base: qa
Choose a base branch
from

Conversation

Janell-Huyck
Copy link
Contributor

@Janell-Huyck Janell-Huyck commented Mar 18, 2025

Jira Issue: LIBAAEC-48

This PR improves the reliability and consistency of our feature tests by addressing timing issues, refining selectors, and switching the browser driver from Chrome to Firefox.

Changes

Extended Wait Times:
Increased the Capybara default wait time to 1 minute to better accommodate asynchronous operations and slow redirects.

Retry Logic:

Added retries for stubborn operations, such as clicking buttons and waiting for redirects, to reduce test flakiness.

Authenticity Token Selector:

Updated the helper method for invalidating authenticity tokens to target the hidden input within the form more specifically.

Browser Update:

Switched test execution from Chrome to Firefox to align with our target environment and improve compatibility.

Impact

Tests now wait longer for dynamic content, reducing intermittent failures.

More robust selectors and retry logic help ensure that operations like button clicks and redirects execute reliably.

The refined handling of authenticity tokens ensures that our CSRF protection tests work as intended.

Janell-Huyck and others added 30 commits March 13, 2025 14:54
@github-actions github-actions bot changed the title WIP Libaaec 48 fix broken feature tests due to chrome update LIBAAEC-48 WIP Libaaec 48 fix broken feature tests due to chrome update Mar 18, 2025
@Janell-Huyck
Copy link
Contributor Author

200w
Fixing feature tests be like...

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.

1 participant