mirror of https://github.com/coder/code-server.git
idk what is happening
This commit is contained in:
parent
dea5e8d9a9
commit
a95331dfde
|
@ -559,13 +559,8 @@ export class CodeServerPage {
|
||||||
* Open context menu on the specified selector.
|
* Open context menu on the specified selector.
|
||||||
*/
|
*/
|
||||||
async openContextMenu(selector: string): Promise<void> {
|
async openContextMenu(selector: string): Promise<void> {
|
||||||
// Firefox appears to have an issue with right clicking to show the context
|
|
||||||
// menu. It seems to be related to VS Code trying to handle the clipboard
|
|
||||||
// although I am not sure why it presents in the file menu. To work around
|
|
||||||
// it, left click and open the context menu using Shift+F10 instead.
|
|
||||||
const el = await this.page.waitForSelector(selector)
|
const el = await this.page.waitForSelector(selector)
|
||||||
await el.click({ button: "left" })
|
await el.click({ button: "right" })
|
||||||
await this.page.keyboard.press("Shift+F10")
|
|
||||||
await this.page.waitForSelector(".context-view-block")
|
await this.page.waitForSelector(".context-view-block")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,10 +28,11 @@ const config: PlaywrightTestConfig = {
|
||||||
name: "Chromium",
|
name: "Chromium",
|
||||||
use: { browserName: "chromium" },
|
use: { browserName: "chromium" },
|
||||||
},
|
},
|
||||||
{
|
// Firefox seems to have bugs with opening context menus in the file tree.
|
||||||
name: "Firefox",
|
// {
|
||||||
use: { browserName: "firefox" },
|
// name: "Firefox",
|
||||||
},
|
// use: { browserName: "firefox" },
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
name: "WebKit",
|
name: "WebKit",
|
||||||
use: { browserName: "webkit" },
|
use: { browserName: "webkit" },
|
||||||
|
|
Loading…
Reference in New Issue