Skip to content

Commit

Permalink
LPD-32863 Adapt test, check that it works with Shift key when range m…
Browse files Browse the repository at this point in the history
…ultiselect is on
  • Loading branch information
georgel-pop-lr authored and brianchandotcom committed Nov 7, 2024
1 parent cd5ed48 commit 96c1382
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,32 @@ test(

await pageEditorPage.selectFragment(headingId);

// Check that when multiple selection is on the class is present
// Check that when simple multiple selection is on the class is present

await page.keyboard.down('Control');

await expect(
page.locator('.page-editor__topper.not-allowed').first()
).toBeVisible();

await page.keyboard.up('Control');

await expect(
page.locator('.page-editor__topper.not-allowed').first()
).not.toBeVisible();

// Check that when range multiple selection is on the class is present

await page.keyboard.down('Shift');

await expect(
page.locator('.page-editor__topper.not-allowed').first()
).toBeVisible();

await page.keyboard.up('Shift');

await expect(
page.locator('.page-editor__topper.not-allowed').first()
).not.toBeVisible();
}
);

0 comments on commit 96c1382

Please sign in to comment.