Skip to content

Commit 32102a7

Browse files
fix: behavior test execution
1 parent 5596ce0 commit 32102a7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/behavior/tests/tables/table-arrow-boundary-navigation.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
import fs from 'node:fs';
12
import { resolve, dirname } from 'node:path';
23
import { fileURLToPath } from 'node:url';
34

45
import { test } from '../../fixtures/superdoc.js';
56

67
test.use({ config: { toolbar: 'full', showCaret: true, showSelection: true } });
78

8-
const TEST_FILE = resolve(dirname(fileURLToPath(import.meta.url)), '../../test-data/tables/sd-2236-table-arrow-key-navigation.docx');
9+
const TEST_FILE = resolve(
10+
dirname(fileURLToPath(import.meta.url)),
11+
'../../test-data/tables/sd-2236-table-arrow-key-navigation.docx',
12+
);
13+
14+
test.skip(!fs.existsSync(TEST_FILE), 'Test document not available — run pnpm corpus:pull');
915

1016
test('ArrowRight from the end of the bottom-right table cell exits to the paragraph after the table', async ({
1117
superdoc,

0 commit comments

Comments
 (0)