follow-up

This commit is contained in:
Max Schmitt 2024-04-10 09:59:13 +02:00
parent 1ca1078860
commit 259d9c6380

View file

@ -33,7 +33,8 @@ it('should print no-locator-resolved error when locator matcher did not resolve
() => expectWithShortLivingTimeout(myLocator).toHaveJSProperty('abc', 'abc'), // Equal matcher
() => expectWithShortLivingTimeout(myLocator).not.toHaveText('abc'), // Text matcher - pass / string
() => expectWithShortLivingTimeout(myLocator).not.toHaveText(/abc/), // Text matcher - pass / RegExp
() => expectWithShortLivingTimeout(myLocator).toContainText('abc'), // Text matcher - fail
() => expectWithShortLivingTimeout(myLocator).toContainText('abc'), // Text matcher - fail / string
() => expectWithShortLivingTimeout(myLocator).toContainText(/abc/), // Text matcher - fail / RegExp
];
for (const matcher of locatorMatchers) {
await it.step(matcher.toString(), async () => {