From 91cf47856c9189df96d7914c03fc67dc56c8e482 Mon Sep 17 00:00:00 2001 From: Gustavo Lira Date: Wed, 15 Jan 2025 14:52:16 -0300 Subject: [PATCH] Use consistent single quotes in Playwright tests Signed-off-by: Gustavo Lira --- .../playwright/e2e/github-happy-path.spec.ts | 16 ++++++++-------- .../playwright/support/pages/CatalogImport.ts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/e2e-tests/playwright/e2e/github-happy-path.spec.ts b/e2e-tests/playwright/e2e/github-happy-path.spec.ts index 25bf4ac80d..92db90f94e 100644 --- a/e2e-tests/playwright/e2e/github-happy-path.spec.ts +++ b/e2e-tests/playwright/e2e/github-happy-path.spec.ts @@ -79,23 +79,23 @@ test.describe.serial('GitHub Happy path', () => { } }); - test("Click login on the login popup and verify that Overview tab renders", async () => { - await uiHelper.openSidebar("Catalog"); - await uiHelper.selectMuiBox("Kind", "Component"); - await uiHelper.clickByDataTestId("user-picker-all"); - await uiHelper.clickLink("Backstage Showcase"); + test('Click login on the login popup and verify that Overview tab renders', async () => { + await uiHelper.openSidebar('Catalog'); + await uiHelper.selectMuiBox('Kind', 'Component'); + await uiHelper.clickByDataTestId('user-picker-all'); + await uiHelper.clickLink('Backstage Showcase'); - const expectedPath = "/catalog/default/component/backstage-showcase"; + const expectedPath = '/catalog/default/component/backstage-showcase'; // Wait for the expected path in the URL await page.waitForURL(`**${expectedPath}`, { - waitUntil: "domcontentloaded", // Wait until the DOM is loaded + waitUntil: 'domcontentloaded', // Wait until the DOM is loaded timeout: 10000, }); // Optionally, verify that the current URL contains the expected path await expect(page.url()).toContain(expectedPath); await common.clickOnGHloginPopup(); - await uiHelper.verifyLink("Janus Website", { exact: false }); + await uiHelper.verifyLink('Janus Website', { exact: false }); await backstageShowcase.verifyPRStatisticsRendered(); await backstageShowcase.verifyAboutCardIsDisplayed(); }); diff --git a/e2e-tests/playwright/support/pages/CatalogImport.ts b/e2e-tests/playwright/support/pages/CatalogImport.ts index d7ef11e7fa..f16144023b 100644 --- a/e2e-tests/playwright/support/pages/CatalogImport.ts +++ b/e2e-tests/playwright/support/pages/CatalogImport.ts @@ -115,7 +115,7 @@ export class BackstageShowcase { async verifyAboutCardIsDisplayed() { const url = - 'https://github.com/redhat-developer/rhdh/tree/main/catalog-entities/components/' + 'https://github.com/redhat-developer/rhdh/tree/main/catalog-entities/components/'; const isLinkVisible = await this.page .locator(`a[href="${url}"]`) .isVisible();