From 259d9c6380bcd59224f1541259b21cff778d12a1 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 10 Apr 2024 09:59:13 +0200 Subject: [PATCH] follow-up --- tests/page/matchers.misc.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/page/matchers.misc.spec.ts b/tests/page/matchers.misc.spec.ts index 1cf7ba56cc..5f785f49a3 100644 --- a/tests/page/matchers.misc.spec.ts +++ b/tests/page/matchers.misc.spec.ts @@ -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 () => {