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
Codeceptjs Version: 3.5.5
Playwright Version: 1.35.1
OS: MacOS x86
Error:
Error: Unexpected value
at innerSerializeValue ( application/e2e_tests/node_modules/playwright-core/lib/protocol/serializers.js:186:9)
at innerSerializeValue ( application/e2e_tests/node_modules/playwright-core/lib/protocol/serializers.js:179:10)
at innerSerializeValue ( application/e2e_tests/node_modules/playwright-core/lib/protocol/serializers.js:179:10)
at innerSerializeValue ( application/e2e_tests/node_modules/playwright-core/lib/protocol/serializers.js:179:10)
at innerSerializeValue ( application/e2e_tests/node_modules/playwright-core/lib/protocol/serializers.js:179:10)
at serializeValue ( application/e2e_tests/node_modules/playwright-core/lib/protocol/serializers.js:97:10)
at serializeArgument ( application/e2e_tests/node_modules/playwright-core/lib/client/jsHandle.js:101:49)
at Frame.evaluate ( application/e2e_tests/node_modules/playwright-core/lib/client/frame.js:173:44)
at Page.evaluate ( application/e2e_tests/node_modules/playwright-core/lib/client/page.js:383:28)
at module.exports.highlightElement ( application/e2e_tests/node_modules/codeceptjs/lib/helper/scripts/highlightElement.js:11:13)
const { I } = inject();
module.exports = {
async useTryTo() {
I.amOnPage('https://codecept.io/');
await tryTo(() => {
// NOTE: in tryTo, debugMode is set to true
this.fillAField();
})
},
async fillAField() {
// which causes this to have highlight although it's disabled
// and highlight() has issues with this context in 3.5.5
// but used to be okay in 3.5.3
I.fillField('#algolia-search-input', "foobar")
},
}
Two issues:
highlightElement
being set to true, even though it's disabledhighlightElement
throws errors under certain conditionsSee Slack thread for more details:
https://codeceptjs.slack.com/archives/C94G8JXJB/p1695695685024739
Example.zip: highlight_error_sample.zip
Codeceptjs Version: 3.5.5
Playwright Version: 1.35.1
OS: MacOS x86
Error:
test.js
pageObject.js
config.js
and package.json
The text was updated successfully, but these errors were encountered: