@netflix/x-test
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@netflix/x-test", | ||
"description": "a simple, tap-compliant test runner for the browser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/Netflix/x-test", |
@@ -770,3 +770,4 @@ /** | ||
}); | ||
Object.assign(iframe, { id: step.testId, src: href }); | ||
iframe.setAttribute('data-x-test-test-id', step.testId); | ||
Object.assign(iframe, { src: href }); | ||
Object.assign(iframe.style, { | ||
@@ -1442,3 +1443,3 @@ border: 'none', backgroundColor: 'white', height: '100vh', | ||
let suiteContext = null; | ||
if (frameElement === null || !frameElement.id) { | ||
if (!frameElement?.getAttribute('data-x-test-test-id')) { | ||
const state = { | ||
@@ -1461,3 +1462,3 @@ ended: false, waiting: false, children: [], stepIds: [], steps: {}, | ||
}; | ||
XTestSuite.initialize(suiteContext, frameElement.id, location.href); | ||
XTestSuite.initialize(suiteContext, frameElement.getAttribute('data-x-test-test-id'), location.href); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120575
2598