|
|
@@ -1,7 +1,9 @@
|
|
|
-import { expect, type Page, test } from '@playwright/test';
|
|
|
+import { expect, test } from '@playwright/test';
|
|
|
import { readFileSync } from 'fs';
|
|
|
import path from 'path';
|
|
|
|
|
|
+import { appendTextToEditorUntilContains } from '../utils/AppendTextToEditorUntilContains';
|
|
|
+
|
|
|
/**
|
|
|
* for the issues:
|
|
|
* @see https://redmine.weseek.co.jp/issues/122040
|
|
|
@@ -61,13 +63,6 @@ test('should not be cleared and should prevent GrantSelector from modified', asy
|
|
|
);
|
|
|
});
|
|
|
|
|
|
-const appendTextToEditorUntilContains = async (page: Page, text: string) => {
|
|
|
- await page.locator('.cm-content').fill(text);
|
|
|
- await expect(page.getByTestId('page-editor-preview-body')).toContainText(
|
|
|
- text,
|
|
|
- );
|
|
|
-};
|
|
|
-
|
|
|
/**
|
|
|
* for the issue:
|
|
|
* @see https://redmine.weseek.co.jp/issues/115285
|