forked from deephaven/web-client-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Right clicking with a custom context menu open should open anoth…
…er context menu (deephaven#1526) Fixes deephaven#1525
- Loading branch information
1 parent
9d905fc
commit bd08e1f
Showing
2 changed files
with
51 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('open custom context menu with another custom context menu open', async ({ | ||
page, | ||
}) => { | ||
await page.goto(''); | ||
|
||
await page.getByText('Console').click({ button: 'right' }); | ||
await expect(page.getByText('Close', { exact: true })).toHaveCount(1); | ||
|
||
await page | ||
.getByText('Command History') | ||
.click({ button: 'right', force: true }); | ||
await expect(page.getByText('Close', { exact: true })).toHaveCount(1); | ||
}); |