@lvce-editor/renderer-process 10.36.0 → 10.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5457,6 +5457,11 @@ const toHaveText = (element, {
5457
5457
  }) => {
5458
5458
  return element.textContent === text;
5459
5459
  };
5460
+ const toContainText = (element, {
5461
+ text
5462
+ }) => {
5463
+ return element.textContent.includes(text);
5464
+ };
5460
5465
  const toHaveAttribute = (element, {
5461
5466
  key,
5462
5467
  value
@@ -5493,6 +5498,7 @@ const SingleElementConditions = {
5493
5498
  __proto__: null,
5494
5499
  toBeFocused,
5495
5500
  toBeVisible,
5501
+ toContainText,
5496
5502
  toHaveAttribute,
5497
5503
  toHaveClass,
5498
5504
  toHaveCss,
@@ -6620,7 +6626,7 @@ const waitForFrameToLoad = $Frame => {
6620
6626
  };
6621
6627
 
6622
6628
  // TODO could use browser view when running in electron
6623
- const create$w = async (uid, src, sandbox, csp, credentialless, permissionPolicy) => {
6629
+ const create$w = async (uid, src, sandbox, csp, credentialless, permissionPolicy, title) => {
6624
6630
  const $Iframe = document.createElement('iframe');
6625
6631
  setIframeCredentialless($Iframe, credentialless);
6626
6632
  setIframeCsp($Iframe, csp);
@@ -6629,6 +6635,9 @@ const create$w = async (uid, src, sandbox, csp, credentialless, permissionPolicy
6629
6635
  set($Iframe, permissionPolicy);
6630
6636
  // TODO set classname from iframe worker
6631
6637
  $Iframe.className = 'E2eTestIframe WebViewIframe';
6638
+ if (title) {
6639
+ $Iframe.title = title;
6640
+ }
6632
6641
  set$2(uid, $Iframe);
6633
6642
  // TODO make make waitForFrameToLoad a separate command
6634
6643
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.36.0",
3
+ "version": "10.38.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",