Skip to content

Conversation

@dprevost-LMI
Copy link
Contributor

@dprevost-LMI dprevost-LMI commented Dec 30, 2025

Fixes partially #106

PR serving as a starting point to support the multi-remote case.

  • The goal is to have a strong groundwork and not to implement all matchers in a single PR.
  • The first iteration is to implement the toHaveTitle browser matchers
  • Element's matchers will come next
  • waitUntil was reviewed to support multiple instances better so that we can retry only those that failed, optimizing the fetching process.
    • Also, it now returns a CompareResult to be more flexible and returns more information for the assertions.
  • Mechanism to fetch actual data and to format error message was streamlined using an array of instances (even for non multi-remote case) to have a single algorithm used, but all extensible.
  • Until the work is proven enough, it is kept under the UNSTABLE flag, so it is to be used at your own risk.

Draft TODOs:

@dprevost-LMI dprevost-LMI changed the title feat: WIP Support multiremote feat: WIP Alpha Support for Multiremote Dec 31, 2025
@dprevost-LMI dprevost-LMI changed the title feat: WIP Alpha Support for Multiremote feat: Alpha Support for Multiremote Dec 31, 2025
* @param isNot https://jestjs.io/docs/expect#thisisnot
* @param options wait, interval, etc
*/
const waitUntil = async (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Potentially to revert to it's original since the above is now used

@dprevost-LMI dprevost-LMI changed the title feat: Alpha Support for Multiremote feat: Alpha Support for multi-remote Browser Jan 1, 2026
@dprevost-LMI dprevost-LMI changed the title feat: Alpha Support for multi-remote Browser feat: Alpha Support for Multi-remote Browser Jan 1, 2026
dprevost-LMI and others added 15 commits January 1, 2026 20:46
- Use `waitUntilResult` optimize to rerun per instance and now returns results with multiple information easing the processing. Also support condition returning an array of result or an array of promise
- Use `formatFailureMessage` both compatible for multi-remote and not
- Streamline and unify the processing of browser + get of actual value to use same algo to support easier both multi-remote and not multi-remote
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