diff --git a/e2e/example.spec.ts b/e2e/example.spec.ts index 2f97aca..2d4ca60 100644 --- a/e2e/example.spec.ts +++ b/e2e/example.spec.ts @@ -1,15 +1,12 @@ import { expect, test } from '@playwright/test'; -test.beforeEach(async ({page})=>{ - await page.goto('/') +test.beforeEach(async ({ page }) => { + await page.goto('/'); await expect(page.locator('div').nth(2)).toContainClass('bg-green-400'); -}) - +}); test('has title', async ({ page }) => { await page.goto('/'); // Expect a title "to contain" a substring. await expect(page).toHaveTitle(/Showbridge/); }); - - diff --git a/e2e/modules.spec.ts b/e2e/modules.spec.ts index 55d27d8..c5ac66f 100644 --- a/e2e/modules.spec.ts +++ b/e2e/modules.spec.ts @@ -1,7 +1,7 @@ -import { expect, test } from '@playwright/test' +import { expect, test } from '@playwright/test'; test('add module', async ({ page }) => { - await page.goto('/'); - await page.locator('app-module-list').getByText('add').click(); - await page.getByRole('menuitem', { name: 'HTTP Server' }).click(); -}) \ No newline at end of file + await page.goto('/'); + await page.locator('app-module-list').getByText('add').click(); + await page.getByRole('menuitem', { name: 'HTTP Server' }).click(); +}); diff --git a/playwright.config.ts b/playwright.config.ts index 6b8ddac..16e48e7 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -23,11 +23,11 @@ export default defineConfig({ reporter: 'html', webServer: [ { - name: "showbridge", - command: "showbridge --config config.yaml", - url: "http://localhost:8080/health", - timeout: 10000 - } + name: 'showbridge', + command: 'showbridge --config config.yaml', + url: 'http://localhost:8080/health', + timeout: 10000, + }, ], /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { diff --git a/src/app/app.config.ts b/src/app/app.config.ts index a670e2f..45c753e 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,7 +1,5 @@ import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'; export const appConfig: ApplicationConfig = { - providers: [ - provideBrowserGlobalErrorListeners(), - ], + providers: [provideBrowserGlobalErrorListeners()], }; diff --git a/src/app/app.html b/src/app/app.html index f24d06d..3e1cc73 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -1,7 +1,7 @@