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.
|
||||
*/
|
||||
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)
|
||||
await el.click({ button: "left" })
|
||||
await this.page.keyboard.press("Shift+F10")
|
||||
await el.click({ button: "right" })
|
||||
await this.page.waitForSelector(".context-view-block")
|
||||
}
|
||||
|
||||
|
|
|
@ -28,10 +28,11 @@ const config: PlaywrightTestConfig = {
|
|||
name: "Chromium",
|
||||
use: { browserName: "chromium" },
|
||||
},
|
||||
{
|
||||
name: "Firefox",
|
||||
use: { browserName: "firefox" },
|
||||
},
|
||||
// Firefox seems to have bugs with opening context menus in the file tree.
|
||||
// {
|
||||
// name: "Firefox",
|
||||
// use: { browserName: "firefox" },
|
||||
// },
|
||||
{
|
||||
name: "WebKit",
|
||||
use: { browserName: "webkit" },
|
||||
|
|
Loading…
Reference in New Issue