You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Popups triggered during a test execution are not isolated between sequentially executed tests, leading to state leakage. This results in false positives or negatives when verifying popup content in subsequent tests.
This using method I.seeInPopup(text)
Continues execution assuming the popup was implicitly accepted.
Test 2:
Runs immediately after Test 1 in the same environment.
Launches a new browser session.
Triggers a similar popup.
Verifies the text content of the popup.
Expected Behavior:
Popups in Test 1 and Test 2 should be isolated. The popup in Test 2 should reflect only the state and content triggered during that test.
Actual Behavior:
The popup in Test 2 contains the text/content from the popup triggered in Test 1. This occurs even though a new browser session is initiated in each test.
Related Error:
Error processing test.failed event:
DataCloneError: () => {
const params = this.params || {}
const msg = params.customMessage || ''
return msg + subs(t...<omitted>...) } could not be cloned.
at new DOMException (node:internal/per_context/domexception:53:5)
at sendToParentThread (/path/to/codeceptjs/lib/command/workers/runTests.js:120:15)
at EventEmitter.<anonymous> (/path/to/codeceptjs/lib/command/workers/runTests.js:90:57)
The text was updated successfully, but these errors were encountered:
Summary: Popups triggered during a test execution are not isolated between sequentially executed tests, leading to state leakage. This results in false positives or negatives when verifying popup content in subsequent tests.
This using method I.seeInPopup(text)
Environment:
Steps to Reproduce:
Test 1:
Test 2:
Expected Behavior:
Popups in Test 1 and Test 2 should be isolated. The popup in Test 2 should reflect only the state and content triggered during that test.
Actual Behavior:
The popup in Test 2 contains the text/content from the popup triggered in Test 1. This occurs even though a new browser session is initiated in each test.
Related Error:
The text was updated successfully, but these errors were encountered: