Skip to content

Commit dff0bac

Browse files
committed
test(playwright): remove superfluous separation of createEditor functions
Signed-off-by: Jonas <jonas@freesources.org>
1 parent 19c2ffb commit dff0bac

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

playwright/support/fixtures/editor-api.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface EditorApiFixture {
2525
*/
2626
export const test = base.extend<EditorApiFixture>({
2727
createEditor: async ({ page }, use) => {
28-
const createComponent = async (
28+
const createEditor = async (
2929
options: {
3030
type: 'editor' | 'table',
3131
content?: string,
@@ -60,17 +60,6 @@ export const test = base.extend<EditorApiFixture>({
6060
)
6161
}
6262

63-
const createEditor = async (
64-
options: {
65-
type: 'editor' | 'table',
66-
content?: string,
67-
fileId?: number,
68-
readOnly?: boolean,
69-
},
70-
) => {
71-
await createComponent(options)
72-
}
73-
7463
await use(createEditor)
7564
},
7665
containerId,

0 commit comments

Comments
 (0)