You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the advent of the the builder syntax, we have extracted the HTML interactor which is the parent of almost all of our interactors. Not only is this handy for defining new interactors, but it is useful in its own right for making abstract assertions.
This is an example from a FOLIO test suite using RTL matchers to make a very broad assertion that the text "Not Authorized" is somewhere in the document. There was no clear way on how to do this with interactors, so the fallback was to go back to using a known method from RTL.
With the advent of the the builder syntax, we have extracted the
HTML
interactor which is the parent of almost all of our interactors. Not only is this handy for defining new interactors, but it is useful in its own right for making abstract assertions.This is an example from a FOLIO test suite using RTL matchers to make a very broad assertion that the text "Not Authorized" is somewhere in the document. There was no clear way on how to do this with interactors, so the fallback was to go back to using a known method from RTL.
However, by using the generic
HTML
interactor combined with thecontaining()
matcher we can achieve this elegantly:The text was updated successfully, but these errors were encountered: