From d09dfe8b5c45d2b9cb65592abe3e5102e4a3a70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Carden=CC=83a?= <35935591+luisecm@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:23:40 -0600 Subject: [PATCH] update(tests): fix tests to match latest uplink web --- playwright.config.ts | 2 +- playwright/specs/03-chats-sidebar.spec.ts | 2 +- playwright/specs/13-settings-about.spec.ts | 2 +- playwright/specs/15-settings-developer.spec.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 2018d9a3..8f31e31b 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -46,7 +46,7 @@ export default defineConfig({ /* Configure projects for major browsers */ projects: [ { - name: "chromium", + name: "Automated Tests on Chrome Desktop", use: { ...devices["Desktop Chrome"] }, }, diff --git a/playwright/specs/03-chats-sidebar.spec.ts b/playwright/specs/03-chats-sidebar.spec.ts index 692b201d..5c6792a4 100644 --- a/playwright/specs/03-chats-sidebar.spec.ts +++ b/playwright/specs/03-chats-sidebar.spec.ts @@ -42,7 +42,7 @@ test.describe("Chats Sidebar Tests", () => { await expect(chatsMainPage.createGroupLabelGroupName).toBeVisible(); await expect(chatsMainPage.createGroupLabelGroupName).toHaveText( - "Group Name:", + "Group name:", ); await expect(chatsMainPage.createGroupInputGroupName).toBeVisible(); await expect(chatsMainPage.createGroupLabelGroupMembers).toHaveText( diff --git a/playwright/specs/13-settings-about.spec.ts b/playwright/specs/13-settings-about.spec.ts index a9d5b0ce..627ecf84 100644 --- a/playwright/specs/13-settings-about.spec.ts +++ b/playwright/specs/13-settings-about.spec.ts @@ -124,7 +124,7 @@ test.describe("Settings About Tests", () => { page, }) => { // Label and texts for settings section are correct - await expect(settingsAbout.devModeSectionLabel).toHaveText("DevMode"); + await expect(settingsAbout.devModeSectionLabel).toHaveText("Dev Mode"); await expect(settingsAbout.devModeSectionText).toHaveText( "Click 10 times to enable developer settings.", ); diff --git a/playwright/specs/15-settings-developer.spec.ts b/playwright/specs/15-settings-developer.spec.ts index 862aab6d..4dffa8c4 100644 --- a/playwright/specs/15-settings-developer.spec.ts +++ b/playwright/specs/15-settings-developer.spec.ts @@ -52,7 +52,7 @@ test.describe("Settings Developer Tests", () => { await page.waitForURL("/settings/developer"); // Validate header and description texts - await expect(settingsDeveloper.devModeSectionLabel).toHaveText("Devmode"); + await expect(settingsDeveloper.devModeSectionLabel).toHaveText("Dev Mode"); await expect(settingsDeveloper.devModeSectionText).toHaveText( "Disable devmode.", );