-
-
Notifications
You must be signed in to change notification settings - Fork 747
-
Hi,
I’m experiencing an issue with I.seeTextEquals in CodeceptJS when using the WebKit browser via Playwright. The test fails if the text being compared is long and wraps to multiple lines.
Details
- The same test passes in Chromium and Firefox.
- Using I.grabTextFrom(selector) retrieves the correct text in WebKit, and it matches the expected value.
- The failure seems specific to how I.seeTextEquals handles multi-line text in WebKit.
Example
I.seeTextEquals('Thank you for submitting the form. Your data has been received.', '#thank-you');
Versions
CodeceptJS: 3.4.1
Playwright: 1.49.1
Question
Does I.seeTextEquals handle multi-line text differently in WebKit? Are there any workarounds for this issue?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I use I.grabTextFrom(selector) : const articleName = await I.grabTextFrom(
'div[class="product-title-and-price"] div h2'
);
return [articleName]; and then I.waitForVisible(`//*[text()="${articleName}"]`)
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment