Skip to content

Commit 02ebc01

Browse files
committed
fix: lint
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
1 parent 2124b78 commit 02ebc01

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

playwright/e2e/basic.spec.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

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'
99

10-
test.describe("Basic checks", () => {
10+
test.describe('Basic checks', () => {
1111
test.beforeEach(async ({ page }) => {
12-
await login(page);
13-
});
12+
await login(page)
13+
})
1414

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+
})
1919

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/')
2222
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+
})

playwright/support/sections/NoteEditor.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import type { Locator, Page } from "@playwright/test";
6+
import type { Locator, Page } from '@playwright/test'
77

88
export class NoteEditor {
9-
public readonly el: Locator;
10-
public readonly content: Locator;
9+
10+
public readonly el: Locator
11+
public readonly content: Locator
1112

1213
constructor(public readonly page: Page) {
13-
this.el = this.page.locator(".editor").first();
14-
this.content = this.el.getByRole("textbox");
14+
this.el = this.page.locator('.editor').first()
15+
this.content = this.el.getByRole('textbox')
1516
}
1617

1718
public async type(keys: string): Promise<void> {
18-
await this.content.pressSequentially(keys);
19+
await this.content.pressSequentially(keys)
1920
}
21+
2022
}

0 commit comments

Comments
 (0)