Contribution Date
Contribution Project
Contribution Details
refactor(test): cookie consent handling and remove global setup
This commit refactors the cookie consent handling by introducing a reusable `acceptCookiesIfBanner` utility function. This function encapsulates the logic for finding and clicking "Accept All" buttons, making it adaptable to various selectors.
The `global-setup.ts` file has been removed, as its functionality is now covered by the new utility function integrated into individual test `beforeEach` hooks. The Playwright configuration has been updated to reflect this change.
This change improves the maintainability and reusability of cookie consent logic across the test suite.
Contribution Issue Link
Files count
0
Patches count
1