neos-ui
neos-ui copied to clipboard
TASK: More isolated e2e tests (on their own page)
resolves: #3542
I tried to start with my proposed changes. For now i want to run the createNewNodes.e2e.js on their own site. But for some reason i can't create new nodes via the inline ui if there is no existing node in the content collection. (At least thats the difference between when the test is run on the home page. And removing the existing node on the homepage yields the same error)
So i tried to debug this test yarn run testcafe chrome Tests/IntegrationTests/Fixtures -T 'Can create content node from inside InlineUI' --debug-on-fail
It testcafe just says 1) Uncaught object "[object Object]" was thrown. Throw Error instead.. I could narrow it down via a try catch to the following lines. And after refining i found out that the line click(Selector('.neos-contentcollection')) was failing.
https://github.com/neos/neos-ui/blob/7ea5dd72e8c621c830e72ce1432663854fc92f67/Tests/IntegrationTests/Fixtures/1Dimension/createNewNodes.e2e.js#L159-L169
After putting it in a try catch, it logged
{
callsite: CallsiteRecord {
filename: 'Neos.Neos.Ui/Tests/IntegrationTests/Fixtures/1Dimension/createNewNodes.e2e.js',
lineNum: 166,
callsiteFrameIdx: 5,
stackFrames: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
CallSite {}, [Object],
[Object], [Object]
],
isV8Frames: true
}
}
which is indeed not an error but a normal object ...
if i dont wrap it in a try catch, testcafe will just fail:
And without the try catch testcafe doesnt find the inline add node button ...
The tests Check the nodetype help in create dialog and Check that nodetype without help has no help button should currently fail due to the same behaviour ...