Skip to content

Commit

Permalink
TASK: Add failing E2E test that show superfluous toggle handle
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Jul 4, 2024
1 parent c0e725f commit 53edaac
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ test('Node tree preset "blog" shows nothing but page [🗋 Blog]', async (t) =>
.ok('[🗋 Blog] did not show up after switching to node tree preset "blog".');
});

test.skip('In node tree preset "blog", page [🗋 Blog] has no toggle handle', async (t) => {
await t.click('#btn-ToggleDocumentTreeFilter');
await t.click('#neos-NodeTreeFilter');
await t.click(Selector('[role="button"]').withText('Show Blog only'));

await t.expect(Page.getToggleChildrenButtonOf('Blog').exists)
.notOk('[🗋 Blog] has a toggle handle, even though its children do not match the currently set filter in node tree preset "blog".');
});

test('Reloading the node tree while in preset "blog" results in nothing but page [🗋 Blog]', async (t) => {
await t.click('#btn-ToggleDocumentTreeFilter');
await t.click('#neos-NodeTreeFilter');
Expand Down

0 comments on commit 53edaac

Please sign in to comment.