diff --git a/frontend/tests/functional/detailed/login.test.ts b/frontend/tests/functional/detailed/login.test.ts index f41c56aa3..6a85f8b4d 100644 --- a/frontend/tests/functional/detailed/login.test.ts +++ b/frontend/tests/functional/detailed/login.test.ts @@ -12,7 +12,7 @@ baseTest.skip('login page as expected title', async ({ page }) => { test('login / logout process is working properly', async ({ loginPage, - analyticsPage, + birdEyePage, sideBar, page }) => { @@ -20,7 +20,7 @@ test('login / logout process is working properly', async ({ await expect.soft(page.getByTestId('login')).toBeVisible(); await loginPage.checkForUndefinedText(); await loginPage.login(); - await analyticsPage.hasUrl(); + await birdEyePage.hasUrl(); await sideBar.logout(); }); diff --git a/frontend/tests/functional/nav.test.ts b/frontend/tests/functional/nav.test.ts index 669481ce8..499b38c34 100644 --- a/frontend/tests/functional/nav.test.ts +++ b/frontend/tests/functional/nav.test.ts @@ -2,12 +2,12 @@ import { localItems } from '../../src/lib/utils/locales.js'; import { languageTag, setLanguageTag, availableLanguageTags } from '../../src/paraglide/runtime.js'; import { test, expect, setHttpResponsesListener } from '../utils/test-utils.js'; -test('sidebar navigation tests', async ({ logedPage, analyticsPage, sideBar, page }) => { +test('sidebar navigation tests', async ({ logedPage, birdEyePage, sideBar, page }) => { test.slow(); await test.step('proper redirection to the analytics page after login', async () => { - await analyticsPage.hasUrl(); - await analyticsPage.hasTitle(); + await birdEyePage.hasUrl(); + await birdEyePage.hasTitle(); setHttpResponsesListener(page); }); @@ -59,7 +59,7 @@ test('sidebar navigation tests', async ({ logedPage, analyticsPage, sideBar, pag }); await test.step('translation panel is working properly', async () => { - await analyticsPage.goto(); + await birdEyePage.goto(); const locales = [...availableLanguageTags]; const index = locales.indexOf('en'); if (index !== -1) { diff --git a/frontend/tests/functional/startup.test.ts b/frontend/tests/functional/startup.test.ts index a56fee59e..6ad5eccfc 100644 --- a/frontend/tests/functional/startup.test.ts +++ b/frontend/tests/functional/startup.test.ts @@ -1,15 +1,15 @@ import { test } from '../utils/test-utils.js'; -test('startup tests', async ({ loginPage, analyticsPage, page }) => { +test('startup tests', async ({ loginPage, birdEyePage, page }) => { await test.step('proper redirection to the login page', async () => { await page.goto('/'); await loginPage.hasUrl(1); await loginPage.login(); - await analyticsPage.hasUrl(); + await birdEyePage.hasUrl(); }); await test.step('proper redirection to the analytics page after login', async () => { - await analyticsPage.hasUrl(); - await analyticsPage.hasTitle(); + await birdEyePage.hasUrl(); + await birdEyePage.hasTitle(); }); }); diff --git a/frontend/tests/functional/user-route.test.ts b/frontend/tests/functional/user-route.test.ts index b54321718..14372f29f 100644 --- a/frontend/tests/functional/user-route.test.ts +++ b/frontend/tests/functional/user-route.test.ts @@ -6,15 +6,15 @@ const vars = TestContent.generateTestVars(); test('user usual routine actions are working correctly', async ({ logedPage, pages, - analyticsPage, + birdEyePage, sideBar, page }) => { test.slow(); await test.step('proper redirection to the analytics page after login', async () => { - await analyticsPage.hasUrl(); - await analyticsPage.hasTitle(); + await birdEyePage.hasUrl(); + await birdEyePage.hasTitle(); setHttpResponsesListener(page); }); diff --git a/frontend/tests/utils/birdEye-page.ts b/frontend/tests/utils/birdEye-page.ts index e60df7570..e20cb7d34 100644 --- a/frontend/tests/utils/birdEye-page.ts +++ b/frontend/tests/utils/birdEye-page.ts @@ -3,7 +3,7 @@ import { BasePage } from './base-page.js'; export class BirdEyePage extends BasePage { constructor(public readonly page: Page) { - super(page, '/bird-eye', 'BirdEye'); + super(page, '/bird-eye', 'Bird Eye'); // this.page.goto('/analytics'); } } diff --git a/frontend/tests/utils/test-utils.ts b/frontend/tests/utils/test-utils.ts index d9dfa8232..793fa2dcc 100644 --- a/frontend/tests/utils/test-utils.ts +++ b/frontend/tests/utils/test-utils.ts @@ -1,7 +1,7 @@ import { test as base, expect as baseExpect, type Page } from '@playwright/test'; import { SideBar } from './sidebar.js'; import { LoginPage } from './login-page.js'; -import { AnalyticsPage } from './analytics-page.js'; +import { BirdEyePage } from './birdEye-page.js'; import { PageContent } from './page-content.js'; import { FormFieldType as type } from './form-content.js'; import { Mailer } from './mailer.js'; @@ -14,7 +14,7 @@ type Fixtures = { mailer: Mailer; sideBar: SideBar; pages: { [page: string]: PageContent }; - analyticsPage: AnalyticsPage; + birdEyePage: BirdEyePage; assetsPage: PageContent; complianceAssessmentsPage: PageContent; evidencesPage: PageContent; @@ -90,8 +90,8 @@ export const test = base.extend({ }); }, - analyticsPage: async ({ page }, use) => { - await use(new AnalyticsPage(page)); + birdEyePage: async ({ page }, use) => { + await use(new BirdEyePage(page)); }, complianceAssessmentsPage: async ({ page }, use) => {