idk what is happening

This commit is contained in:
Asher 2024-09-19 00:53:00 -08:00
parent dea5e8d9a9
commit a95331dfde
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 6 additions and 10 deletions

View File

@ -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")
} }

View File

@ -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" },