Skip to content

Commit 19c2ffb

Browse files
committed
test(playwright): make containerId a global const in editorApi fixture
Signed-off-by: Jonas <jonas@freesources.org>
1 parent f8c6cca commit 19c2ffb

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

playwright/support/fixtures/editor-api.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import { test as base } from './random-user'
77

8+
const containerId = 'test-editor-api'
9+
810
export interface EditorApiFixture {
911
createEditor: (options: {
1012
type: 'editor' | 'table',
@@ -31,7 +33,6 @@ export const test = base.extend<EditorApiFixture>({
3133
readOnly?: boolean,
3234
},
3335
) => {
34-
const containerId = 'test-editor-api'
3536

3637
await page.evaluate(
3738
async ({ containerId, type, content, fileId, readOnly }) => {
@@ -72,7 +73,5 @@ export const test = base.extend<EditorApiFixture>({
7273

7374
await use(createEditor)
7475
},
75-
containerId: async (_, use) => {
76-
await use('test-editor-api')
77-
},
76+
containerId,
7877
})

0 commit comments

Comments
 (0)