|
3 | 3 | * SPDX-License-Identifier: AGPL-3.0-or-later |
4 | 4 | */ |
5 | 5 |
|
6 | | -import { expect, test } from "@playwright/test"; |
7 | | -import { login } from "../support/login"; |
8 | | -import { NoteEditor } from "../support/sections/NoteEditor"; |
| 6 | +import { expect, test } from '@playwright/test' |
| 7 | +import { login } from '../support/login' |
| 8 | +import { NoteEditor } from '../support/sections/NoteEditor' |
9 | 9 |
|
10 | | -test.describe("Basic checks", () => { |
| 10 | +test.describe('Basic checks', () => { |
11 | 11 | test.beforeEach(async ({ page }) => { |
12 | | - await login(page); |
13 | | - }); |
| 12 | + await login(page) |
| 13 | + }) |
14 | 14 |
|
15 | | - test("Notes app is visible", async ({ page }) => { |
16 | | - await page.goto("/index.php/apps/notes/"); |
17 | | - await expect(page).toHaveTitle(/Notes/); |
18 | | - }); |
| 15 | + test('Notes app is visible', async ({ page }) => { |
| 16 | + await page.goto('/index.php/apps/notes/') |
| 17 | + await expect(page).toHaveTitle(/Notes/) |
| 18 | + }) |
19 | 19 |
|
20 | | - test("Create note and type", async ({ page }) => { |
21 | | - await page.goto("/index.php/apps/notes/"); |
| 20 | + test('Create note and type', async ({ page }) => { |
| 21 | + await page.goto('/index.php/apps/notes/') |
22 | 22 | await page |
23 | | - .locator("#app-navigation-vue") |
24 | | - .getByRole("button", { name: "New note" }) |
25 | | - .click(); |
26 | | - const editor = new NoteEditor(page); |
27 | | - await editor.type("Hello from Playwright"); |
28 | | - await expect(editor.content).toContainText("Hello from Playwright"); |
29 | | - }); |
30 | | -}); |
| 23 | + .locator('#app-navigation-vue') |
| 24 | + .getByRole('button', { name: 'New note' }) |
| 25 | + .click() |
| 26 | + const editor = new NoteEditor(page) |
| 27 | + await editor.type('Hello from Playwright') |
| 28 | + await expect(editor.content).toContainText('Hello from Playwright') |
| 29 | + }) |
| 30 | +}) |
0 commit comments