diff --git a/packages/extension/e2e/generated-command-urls.ts b/packages/extension/e2e/generated-command-urls.ts index 8c77a542..497f461f 100644 --- a/packages/extension/e2e/generated-command-urls.ts +++ b/packages/extension/e2e/generated-command-urls.ts @@ -33,7 +33,7 @@ export const COMMAND_URLS: UrlEntry[] = [ { title: "AliExpress", locale: "es", searchUrl: "https://es.aliexpress.com/w/wholesale-%s.html" }, { title: "Buscar comandos en Hub", locale: "es", searchUrl: "https://selection-command.com/es?q=%pageUrl" }, { title: "Pesquisar comandos no Hub", locale: "pt-br", searchUrl: "https://selection-command.com/pt-BR?q=%pageUrl" }, - { title: "OLX", locale: "pt", searchUrl: "https://www.olx.pt/ads/?q=%s" }, + { title: "OLX", locale: "pt", searchUrl: "https://www.olx.pt/ads/q-%s/" }, { title: "Pesquisar comandos no Hub", locale: "pt", searchUrl: "https://selection-command.com/pt-PT?q=%pageUrl" }, { title: "Hub पर कमांड खोजें", locale: "hi", searchUrl: "https://selection-command.com/hi?q=%pageUrl" }, { title: "Tokopedia", locale: "id", searchUrl: "https://www.tokopedia.com/search?st=product&q=%s" }, diff --git a/packages/extension/e2e/single-command.spec.ts b/packages/extension/e2e/single-command.spec.ts index 51bb93ee..c4d60a2d 100644 --- a/packages/extension/e2e/single-command.spec.ts +++ b/packages/extension/e2e/single-command.spec.ts @@ -21,7 +21,7 @@ test.describe("Single Function Commands", () => { await context.grantPermissions(["clipboard-read", "clipboard-write"]) const testPage = new TestPage(page) await testPage.open() - await testPage.selectText("h1") + await testPage.selectText("h2") const selectedText = await page.evaluate( () => window.getSelection()?.toString() ?? "", ) @@ -44,20 +44,17 @@ test.describe("Single Function Commands", () => { }) /** - * E2E-31: Verify that the Link Popup command opens each link in the selected range in a popup window. + * E2E-31: Verify that the Link Popup command opens the selected link in a popup window. */ - test("E2E-31: link popup command opens each selected link in a popup window", async ({ + test("E2E-31: link popup command opens the selected link in a popup window", async ({ page, context, }) => { - // Arrange: open the test page and select a range spanning multiple links + // Arrange: open the test page and select a link const testPage = new TestPage(page) await testPage.open() const initialPageCount = context.pages().length - await testPage.selectRange( - "footer a[href$='terms']", - "footer a[href$='cookie']", - ) + await testPage.selectRange("a[download='test.txt']", "a[download='test.txt']") // Act: click the "リンクポップアップ" menu item and wait for a new page to open const menubar = await testPage.getMenuBar() diff --git a/packages/extension/src/services/option/defaultSettings.ts b/packages/extension/src/services/option/defaultSettings.ts index 26063e01..73ad617b 100644 --- a/packages/extension/src/services/option/defaultSettings.ts +++ b/packages/extension/src/services/option/defaultSettings.ts @@ -1039,7 +1039,7 @@ const CMD_OLX_PT = { iconUrl: "https://www.olx.pt/favicon.ico", openMode: OPEN_MODE.TAB, openModeSecondary: OPEN_MODE.TAB, - searchUrl: "https://www.olx.pt/ads/?q=%s", + searchUrl: "https://www.olx.pt/ads/q-%s/", title: "OLX", parentFolderId: FOLDER_SEARCH, popupOption: { width: PopupOption.width, height: PopupOption.height },