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
fixture.only(`Test`).page(`www.google.com`)test.only(`Test screenshot headless`,asynct=>{awaitt.wait(2)awaitt.expect(false).ok(`This is a test`)})test.only(`Test screenshot headless`,asynct=>{awaitt.wait(2)awaitt.expect(false).ok(`This is a test`)})test.only(`Test screenshot headless`,asynct=>{awaitt.wait(2)awaitt.expect(false).ok(`This is a test`)})test.only(`Test screenshot headless`,asynct=>{awaitt.wait(2)awaitt.expect(false).ok(`This is a test`)})
testcafe-c3edge:headless./tests/login.test.jsUsinglocallyinstalledversionofTestCafe.The"src"and"browsers"optionsfromtheconfigurationfilewillbeignored.Runningtestsin:-MicrosoftEdge103.0.1264.77/Windows11-MicrosoftEdge103.0.1264.77/Windows11-MicrosoftEdge103.0.1264.77/Windows11×Test-Testscreenshotheadless1) AssertionError:Thisisatest:expectedfalsetobetruthyBrowser:MicrosoftEdge103.0.1264.77/Windows10133|134|fixture.only(`Test`).page(`www.google.com`)135|136|test.only(`Test screenshot headless`, async t => { 137 | await t.wait(2) > 138 | await t.expect(false).ok(`This is a test`)})139|140|test.only(`Test screenshot headless`, async t => { 141 | await t.wait(2) 142 | await t.expect(false).ok(`This is a test`)})143|at<anonymous>(C:\tests\login.test.js:138:24)atasyncGeneratorStep(C:\tests\login.test.js:4:291)at_next(C:\tests\login.test.js:4:629)×Test-Testscreenshotheadless1) AssertionError:Thisisatest:expectedfalsetobetruthyBrowser:MicrosoftEdge103.0.1264.77/Windows10137| awaitt.wait(2)138|awaitt.expect(false).ok(`This is a test`)})
139|140|test.only(`Test screenshot headless`, async t => { 141 | await t.wait(2) > 142 | await t.expect(false).ok(`This is a test`)})143|144|test.only(`Test screenshot headless`, async t => { 145 | await t.wait(2) 146 | await t.expect(false).ok(`This is a test`)})147|at<anonymous>(C:\tests\login.test.js:142:24)atasyncGeneratorStep(C:\tests\login.test.js:4:291)at_next(C:\tests\login.test.js:4:629)×Test-Testscreenshotheadless1) AssertionError:Thisisatest:expectedfalsetobetruthyBrowser:MicrosoftEdge103.0.1264.77/Windows10141| awaitt.wait(2)142|awaitt.expect(false).ok(`This is a test`)})
143|144|test.only(`Test screenshot headless`, async t => { 145 | await t.wait(2) > 146 | await t.expect(false).ok(`This is a test`)})147|148|test.only(`Test screenshot headless`, async t => { 149 | await t.wait(2) 150 | await t.expect(false).ok(`This is a test`)})at<anonymous>(C:\tests\login.test.js:146:24)atasyncGeneratorStep(C:\tests\login.test.js:4:291)at_next(C:\tests\login.test.js:4:629)×Test-Testscreenshotheadless1) AssertionError:Thisisatest:expectedfalsetobetruthyBrowser:MicrosoftEdge103.0.1264.77/Windows10145| awaitt.wait(2)146|awaitt.expect(false).ok(`This is a test`)})
147|148|test.only(`Test screenshot headless`, async t => { 149 | await t.wait(2) > 150 | await t.expect(false).ok(`This is a test`)})at<anonymous>(C:\tests\login.test.js:150:24)atasyncGeneratorStep(C:\tests\login.test.js:4:291)at_next(C:\tests\login.test.js:4:629)4/4failed(18s)Warnings(2):--The"src"and"browsers"optionsfromtheconfigurationfilewillbeignored.--Wasunabletotakeascreenshotduetoanerror.Error:Unexpectedendofinputatmodule.exports.ChunkStream._end(C:\node_modules\pngjs\lib\chunkstream.js:100:7)atmodule.exports.ChunkStream._process(C:\node_modules\pngjs\lib\chunkstream.js:203:12)atmodule.exports.ChunkStream.end(C:\node_modules\pngjs\lib\chunkstream.js:90:10)atexports.PNG.PNG.end(C:\node_modules\pngjs\lib\png.js:98:16)atexports.PNG.PNG.parse(C:\node_modules\pngjs\lib\png.js:88:8)atObject.readPng(C:\node_modules\testcafe\src\utils\promisified-functions.js:25:9)atBrowserProviderPluginHost.takeScreenshot(C:\node_modules\testcafe\src\browser\provider\built-in\dedicated\base.js:90:30)atBrowserProvider.takeScreenshot(C:\node_modules\testcafe\src\browser\provider\index.ts:409:13)atCapturer._takeScreenshot(C:\node_modules\testcafe\src\screenshots\capturer.js:123:9)atC:\node_modules\testcafe\src\screenshots\capturer.js:152:13
Screenshots
No response
Steps to Reproduce
Write a fixture with google as page
In configuration file add screenshot and quarantine mode options
run the test in :headless
observe that there is an error at the end
observe that quarantine mode did not work
TestCafe version
both local and global are 1.20.1
Node.js version
v18.4.0
Command-line arguments
testcafe chrome:headless ./tests/login.test.js
Browser name(s) and version(s)
Microsoft Edge 103.0.1264.77, Chrome 104.0.5112.81
Platform(s) and version(s)
Windows 11
Other
On another laptop with windows 10 @ 1.18.1 TestCafe it works fine.
Before updating to 1.20.1, I faced the same issue on 1.18.1 on this windows 11 laptop.
The text was updated successfully, but these errors were encountered:
I managed to reproduce the issue with NodeJS v18.7.0 and Windows 10. Thank you for reporting this. We'll research this issue. Until it is fixed, please use the stable NodeJS version.
What is your Scenario?
Take screenshots on failed tests with quarantine mode in chrome:headless or edge headless.
What is the Current behavior?
When running on chrome:headless, screenshots do not work
What is the Expected behavior?
On test fails it will re-try until attempt limit and take screenshots at each run.
What is your public website URL? (or attach your complete example)
www.google.com
What is your TestCafe test code?
test.js:
Your complete configuration file
Your complete test report
Screenshots
No response
Steps to Reproduce
:headless
TestCafe version
both local and global are 1.20.1
Node.js version
v18.4.0
Command-line arguments
testcafe chrome:headless ./tests/login.test.js
Browser name(s) and version(s)
Microsoft Edge 103.0.1264.77, Chrome 104.0.5112.81
Platform(s) and version(s)
Windows 11
Other
On another laptop with windows 10 @ 1.18.1 TestCafe it works fine.
Before updating to 1.20.1, I faced the same issue on 1.18.1 on this windows 11 laptop.
The text was updated successfully, but these errors were encountered: