@atlaskit/editor-plugin-table 5.4.4 → 5.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/table/types.js +1 -1
  3. package/dist/cjs/plugins/table/ui/DragHandle/HandleIconComponent.js +29 -0
  4. package/dist/cjs/plugins/table/ui/DragHandle/index.js +21 -20
  5. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  6. package/dist/cjs/plugins/table/ui/consts.js +1 -2
  7. package/dist/cjs/plugins/table/ui/ui-styles.js +10 -13
  8. package/dist/cjs/plugins/table/utils/decoration.js +7 -6
  9. package/dist/es2019/plugins/table/types.js +1 -1
  10. package/dist/es2019/plugins/table/ui/DragHandle/HandleIconComponent.js +24 -0
  11. package/dist/es2019/plugins/table/ui/DragHandle/index.js +21 -20
  12. package/dist/es2019/plugins/table/ui/common-styles.js +6 -2
  13. package/dist/es2019/plugins/table/ui/consts.js +0 -1
  14. package/dist/es2019/plugins/table/ui/ui-styles.js +18 -12
  15. package/dist/es2019/plugins/table/utils/decoration.js +7 -6
  16. package/dist/esm/plugins/table/types.js +1 -1
  17. package/dist/esm/plugins/table/ui/DragHandle/HandleIconComponent.js +22 -0
  18. package/dist/esm/plugins/table/ui/DragHandle/index.js +21 -20
  19. package/dist/esm/plugins/table/ui/common-styles.js +2 -2
  20. package/dist/esm/plugins/table/ui/consts.js +0 -1
  21. package/dist/esm/plugins/table/ui/ui-styles.js +10 -13
  22. package/dist/esm/plugins/table/utils/decoration.js +7 -6
  23. package/dist/types/plugins/table/types.d.ts +1 -1
  24. package/dist/types/plugins/table/ui/DragHandle/HandleIconComponent.d.ts +13 -0
  25. package/dist/types/plugins/table/ui/consts.d.ts +0 -1
  26. package/dist/types/plugins/table/ui/ui-styles.d.ts +0 -1
  27. package/dist/types-ts4.5/plugins/table/types.d.ts +1 -1
  28. package/dist/types-ts4.5/plugins/table/ui/DragHandle/HandleIconComponent.d.ts +13 -0
  29. package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +0 -1
  30. package/dist/types-ts4.5/plugins/table/ui/ui-styles.d.ts +0 -1
  31. package/package.json +4 -4
  32. package/src/plugins/table/types.ts +1 -1
  33. package/src/plugins/table/ui/DragHandle/HandleIconComponent.tsx +51 -0
  34. package/src/plugins/table/ui/DragHandle/index.tsx +30 -33
  35. package/src/plugins/table/ui/common-styles.ts +5 -2
  36. package/src/plugins/table/ui/consts.ts +0 -5
  37. package/src/plugins/table/ui/ui-styles.ts +17 -12
  38. package/src/plugins/table/utils/decoration.ts +14 -19
  39. package/tsconfig.dev.json +0 -3
  40. package/src/__tests__/integration/__fixtures__/auto-size-documents.ts +0 -434
  41. package/src/__tests__/integration/__fixtures__/basic-table-with-merged-cell.ts +0 -112
  42. package/src/__tests__/integration/__fixtures__/basic-table.ts +0 -120
  43. package/src/__tests__/integration/__fixtures__/empty-layout.ts +0 -35
  44. package/src/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +0 -396
  45. package/src/__tests__/integration/__fixtures__/even-columns.ts +0 -493
  46. package/src/__tests__/integration/__fixtures__/large-table-with-sticky-header.ts +0 -2311
  47. package/src/__tests__/integration/__fixtures__/layout-documents.ts +0 -606
  48. package/src/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +0 -343
  49. package/src/__tests__/integration/__fixtures__/nested-in-expand.ts +0 -129
  50. package/src/__tests__/integration/__fixtures__/nested-in-extension.ts +0 -163
  51. package/src/__tests__/integration/__fixtures__/paragraph-and-table-adf.ts +0 -132
  52. package/src/__tests__/integration/__fixtures__/resize-documents.ts +0 -1605
  53. package/src/__tests__/integration/__fixtures__/scale.ts +0 -825
  54. package/src/__tests__/integration/__fixtures__/table-and-paragraph-adf.ts +0 -130
  55. package/src/__tests__/integration/__fixtures__/table-inside-layout.ts +0 -145
  56. package/src/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +0 -175
  57. package/src/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +0 -168
  58. package/src/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +0 -216
  59. package/src/__tests__/integration/__snapshots__/copy-button.ts.snap +0 -423
  60. package/src/__tests__/integration/copy-button.ts +0 -179
  61. package/src/__tests__/integration/horizontal-scroll-shadows.ts +0 -197
  62. package/src/__tests__/integration/meta-arrowup-cursor-in-first-row.ts +0 -42
  63. package/src/__tests__/integration/sticky-header.ts +0 -133
  64. package/src/__tests__/integration/table-controls-selection.ts +0 -71
@@ -1,179 +0,0 @@
1
- //import { runBlockNodeSelectionTestSuite } from '@atlaskit/editor-test-helpers/integration/selection';
2
- // import { _getCopyButtonTestSuite } from '@atlaskit/editor-core/src/plugins/copy-button/__tests__/integration/_getCopyButtonTestSuite';
3
- export {};
4
- test.todo('TODO: ED-15706 We disabled the copy button');
5
- // _getCopyButtonTestSuite({
6
- // nodeName: 'Table',
7
- // editorOptions: {
8
- // allowTables: {
9
- // advanced: true,
10
- // },
11
- // defaultValue: {
12
- // version: 1,
13
- // type: 'doc',
14
- // content: [
15
- // {
16
- // type: 'table',
17
- // attrs: {
18
- // isNumberColumnEnabled: false,
19
- // layout: 'default',
20
- // localId: '15804638-b946-4591-b64c-beffe5122733',
21
- // },
22
- // content: [
23
- // {
24
- // type: 'tableRow',
25
- // content: [
26
- // {
27
- // type: 'tableHeader',
28
- // attrs: {},
29
- // content: [
30
- // {
31
- // type: 'paragraph',
32
- // content: [
33
- // {
34
- // type: 'text',
35
- // text: '1',
36
- // },
37
- // ],
38
- // },
39
- // ],
40
- // },
41
- // {
42
- // type: 'tableHeader',
43
- // attrs: {},
44
- // content: [
45
- // {
46
- // type: 'paragraph',
47
- // content: [
48
- // {
49
- // type: 'text',
50
- // text: '2',
51
- // },
52
- // ],
53
- // },
54
- // ],
55
- // },
56
- // {
57
- // type: 'tableHeader',
58
- // attrs: {},
59
- // content: [
60
- // {
61
- // type: 'paragraph',
62
- // content: [
63
- // {
64
- // type: 'text',
65
- // text: '3',
66
- // },
67
- // ],
68
- // },
69
- // ],
70
- // },
71
- // ],
72
- // },
73
- // {
74
- // type: 'tableRow',
75
- // content: [
76
- // {
77
- // type: 'tableCell',
78
- // attrs: {},
79
- // content: [
80
- // {
81
- // type: 'paragraph',
82
- // content: [
83
- // {
84
- // type: 'text',
85
- // text: '4',
86
- // },
87
- // ],
88
- // },
89
- // ],
90
- // },
91
- // {
92
- // type: 'tableCell',
93
- // attrs: {},
94
- // content: [
95
- // {
96
- // type: 'paragraph',
97
- // content: [
98
- // {
99
- // type: 'text',
100
- // text: '5',
101
- // },
102
- // ],
103
- // },
104
- // ],
105
- // },
106
- // {
107
- // type: 'tableCell',
108
- // attrs: {},
109
- // content: [
110
- // {
111
- // type: 'paragraph',
112
- // content: [
113
- // {
114
- // type: 'text',
115
- // text: '6',
116
- // },
117
- // ],
118
- // },
119
- // ],
120
- // },
121
- // ],
122
- // },
123
- // {
124
- // type: 'tableRow',
125
- // content: [
126
- // {
127
- // type: 'tableCell',
128
- // attrs: {},
129
- // content: [
130
- // {
131
- // type: 'paragraph',
132
- // content: [
133
- // {
134
- // type: 'text',
135
- // text: '7',
136
- // },
137
- // ],
138
- // },
139
- // ],
140
- // },
141
- // {
142
- // type: 'tableCell',
143
- // attrs: {},
144
- // content: [
145
- // {
146
- // type: 'paragraph',
147
- // content: [
148
- // {
149
- // type: 'text',
150
- // text: '8',
151
- // },
152
- // ],
153
- // },
154
- // ],
155
- // },
156
- // {
157
- // type: 'tableCell',
158
- // attrs: {},
159
- // content: [
160
- // {
161
- // type: 'paragraph',
162
- // content: [
163
- // {
164
- // type: 'text',
165
- // text: '9',
166
- // },
167
- // ],
168
- // },
169
- // ],
170
- // },
171
- // ],
172
- // },
173
- // ],
174
- // },
175
- // ],
176
- // },
177
- // },
178
- // nodeSelector: '.pm-table-cell-content-wrap',
179
- // });
@@ -1,197 +0,0 @@
1
- // eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
2
- import {
3
- fullpage,
4
- resizeColumn,
5
- } from '@atlaskit/editor-test-helpers/integration/helpers';
6
- // eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
7
- import {
8
- goToEditorTestingWDExample,
9
- mountEditor,
10
- } from '@atlaskit/editor-test-helpers/testing-example-page';
11
- import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
12
- import type WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
13
-
14
- import { TableCssClassName as className } from '../../plugins/table/types';
15
-
16
- import basicTable from './__fixtures__/basic-table';
17
-
18
- const checkShadows = async (page: WebdriverPage, side?: 'left' | 'right') => {
19
- const leftShadow = await page.$(`.${className.TABLE_LEFT_SHADOW}`);
20
- const rightShadow = await page.$(`.${className.TABLE_RIGHT_SHADOW}`);
21
-
22
- if (!side) {
23
- const leftDisplayed = await leftShadow.isDisplayed();
24
- const rightDisplayed = await rightShadow.isDisplayed();
25
- return leftDisplayed && rightDisplayed;
26
- } else if (side === 'left') {
27
- return await leftShadow.isDisplayed();
28
- } else if (side === 'right') {
29
- return await rightShadow.isDisplayed();
30
- }
31
- };
32
-
33
- BrowserTestCase(
34
- 'Table does not show horizontal scroll shadows when there is no scrollbar',
35
- {},
36
- async (client: any, testName: string) => {
37
- const page = await goToEditorTestingWDExample(
38
- client,
39
- 'editor-plugin-table',
40
- );
41
-
42
- await mountEditor(page, {
43
- appearance: fullpage.appearance,
44
- defaultValue: JSON.stringify(basicTable),
45
- allowTables: {
46
- advanced: true,
47
- },
48
- });
49
-
50
- await page.waitForSelector('table');
51
- expect(await checkShadows(page)).toBeFalsy();
52
- },
53
- );
54
-
55
- BrowserTestCase(
56
- 'Table shows right shadow when table is scrollable and all the way to the left',
57
- {},
58
- async (client: any, testName: string) => {
59
- const page = await goToEditorTestingWDExample(
60
- client,
61
- 'editor-plugin-table',
62
- );
63
-
64
- await mountEditor(page, {
65
- appearance: fullpage.appearance,
66
- defaultValue: JSON.stringify(basicTable),
67
- allowTables: {
68
- advanced: true,
69
- },
70
- });
71
-
72
- await page.waitForSelector('table');
73
- await resizeColumn(page, { cellHandlePos: 2, resizeWidth: 1000 });
74
-
75
- expect(await checkShadows(page, 'right')).toBeTruthy();
76
- },
77
- );
78
-
79
- BrowserTestCase(
80
- 'Table should not show left shadow when table is scrollable and all the way to the left',
81
- {},
82
- async (client: any, testName: string) => {
83
- const page = await goToEditorTestingWDExample(
84
- client,
85
- 'editor-plugin-table',
86
- );
87
-
88
- await mountEditor(page, {
89
- appearance: fullpage.appearance,
90
- defaultValue: JSON.stringify(basicTable),
91
- allowTables: {
92
- advanced: true,
93
- },
94
- });
95
-
96
- await page.waitForSelector('table');
97
- await resizeColumn(page, { cellHandlePos: 2, resizeWidth: 1000 });
98
-
99
- expect(await checkShadows(page, 'left')).toBeFalsy();
100
- },
101
- );
102
-
103
- BrowserTestCase(
104
- 'Table should show both left and right shadows when table is scrollable and scrolled',
105
- {},
106
- async (client: any, testName: string) => {
107
- const page = await goToEditorTestingWDExample(
108
- client,
109
- 'editor-plugin-table',
110
- );
111
-
112
- await mountEditor(page, {
113
- appearance: fullpage.appearance,
114
- defaultValue: JSON.stringify(basicTable),
115
- allowTables: {
116
- advanced: true,
117
- },
118
- });
119
-
120
- await page.waitForSelector('table');
121
- await resizeColumn(page, { cellHandlePos: 2, resizeWidth: 1000 });
122
- await page.evaluate(() => {
123
- const tableWrapper =
124
- document.querySelector<HTMLElement>('.pm-table-wrapper');
125
- if (tableWrapper) {
126
- tableWrapper.scrollLeft += 500;
127
- }
128
- return tableWrapper;
129
- });
130
-
131
- expect(await checkShadows(page)).toBeTruthy();
132
- },
133
- );
134
-
135
- BrowserTestCase(
136
- 'Table should not show right shadow when table is scrollable and scrolled all the way to the right',
137
- {},
138
- async (client: any, testName: string) => {
139
- const page = await goToEditorTestingWDExample(
140
- client,
141
- 'editor-plugin-table',
142
- );
143
-
144
- await mountEditor(page, {
145
- appearance: fullpage.appearance,
146
- defaultValue: JSON.stringify(basicTable),
147
- allowTables: {
148
- advanced: true,
149
- },
150
- });
151
-
152
- await page.waitForSelector('table');
153
- await resizeColumn(page, { cellHandlePos: 2, resizeWidth: 1000 });
154
- await page.evaluate(() => {
155
- const tableWrapper =
156
- document.querySelector<HTMLElement>('.pm-table-wrapper');
157
- if (tableWrapper) {
158
- tableWrapper.scrollLeft += 1000;
159
- }
160
- return tableWrapper;
161
- });
162
-
163
- expect(await checkShadows(page, 'right')).toBeFalsy();
164
- },
165
- );
166
-
167
- BrowserTestCase(
168
- 'Table should show left shadow when table is scrollable and scrolled all the way to the right',
169
- {},
170
- async (client: any, testName: string) => {
171
- const page = await goToEditorTestingWDExample(
172
- client,
173
- 'editor-plugin-table',
174
- );
175
-
176
- await mountEditor(page, {
177
- appearance: fullpage.appearance,
178
- defaultValue: JSON.stringify(basicTable),
179
- allowTables: {
180
- advanced: true,
181
- },
182
- });
183
-
184
- await page.waitForSelector('table');
185
- await resizeColumn(page, { cellHandlePos: 2, resizeWidth: 1000 });
186
- await page.evaluate(() => {
187
- const tableWrapper =
188
- document.querySelector<HTMLElement>('.pm-table-wrapper');
189
- if (tableWrapper) {
190
- tableWrapper.scrollLeft += 1000;
191
- }
192
- return tableWrapper;
193
- });
194
-
195
- expect(await checkShadows(page, 'left')).toBeTruthy();
196
- },
197
- );
@@ -1,42 +0,0 @@
1
- // eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
2
- import {
3
- expectToMatchSelection,
4
- fullpage,
5
- setProseMirrorTextSelection,
6
- } from '@atlaskit/editor-test-helpers/integration/helpers';
7
- // eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
8
- import {
9
- goToEditorTestingWDExample,
10
- mountEditor,
11
- } from '@atlaskit/editor-test-helpers/testing-example-page';
12
- import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
13
-
14
- import tableAdf from './__fixtures__/table-and-paragraph-adf';
15
-
16
- BrowserTestCase(
17
- 'meta-arrowup-cursor-in-first-row.ts: pressing command/ctrl + arrow up should move cursor into first row',
18
- {},
19
- async (client: any) => {
20
- const page = await goToEditorTestingWDExample(
21
- client,
22
- 'editor-plugin-table',
23
- );
24
- await mountEditor(page, {
25
- appearance: fullpage.appearance,
26
- allowTables: {
27
- advanced: true,
28
- },
29
- defaultValue: tableAdf,
30
- });
31
-
32
- await setProseMirrorTextSelection(page, { anchor: 49 });
33
-
34
- const keys = page.isWindowsPlatform()
35
- ? ['Control', 'Home']
36
- : ['Meta', 'ArrowUp'];
37
-
38
- await page.keys(keys, true);
39
-
40
- await expectToMatchSelection(page, { type: 'text', anchor: 4, head: 4 });
41
- },
42
- );
@@ -1,133 +0,0 @@
1
- // eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
2
- import {
3
- fullpage,
4
- tableSelectors,
5
- } from '@atlaskit/editor-test-helpers/integration/helpers';
6
- // eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
7
- import {
8
- goToEditorTestingWDExample,
9
- mountEditor,
10
- } from '@atlaskit/editor-test-helpers/testing-example-page';
11
- import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
12
- import type WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
13
-
14
- import stickyTable from './__fixtures__/large-table-with-sticky-header';
15
-
16
- const scrollTo = async (page: WebdriverPage, height: number) => {
17
- const editorScrollParentSelector = '.fabric-editor-popup-scroll-parent';
18
- await page.execute(
19
- (editorScrollParentSelector: string, height: number) => {
20
- const editor = document.querySelector(editorScrollParentSelector);
21
- editor && editor.scroll(0, height);
22
- },
23
- editorScrollParentSelector,
24
- height,
25
- );
26
- };
27
-
28
- // const resizeScrollParent = async (page: WebdriverPage) => {
29
- // const editorScrollParentSelector = '.ak-editor-fp-content-area';
30
- // await page.execute((editorScrollParentSelector: string) => {
31
- // const editor = document.querySelector(editorScrollParentSelector);
32
- // console.log('editort', editor);
33
- // editor && editor.setAttribute('width', '1000px');
34
- // }, editorScrollParentSelector);
35
- // };
36
-
37
- const insertColumn = async (page: any, cell: 'first' | 'last') => {
38
- const columnControl = tableSelectors.nthColumnControl(1);
39
- const insertButton = tableSelectors.insertButton;
40
- const firstCell = tableSelectors.topLeftCell;
41
- const firstCellLastRow = `table > tbody > tr:nth-child(48) > td:nth-child(1)`;
42
-
43
- if (cell === 'first') {
44
- await page.click(firstCell);
45
- } else if (cell === 'last') {
46
- await page.click(firstCellLastRow);
47
- }
48
-
49
- const columnDecorationSelector = columnControl;
50
- await page.hover(columnDecorationSelector);
51
-
52
- await page.waitForSelector(insertButton);
53
- await page.click(insertButton);
54
- };
55
-
56
- BrowserTestCase(
57
- 'Sticky header should correctly toggle on and off',
58
- {},
59
- async (client: any, testName: string) => {
60
- const page = await goToEditorTestingWDExample(
61
- client,
62
- 'editor-plugin-table',
63
- );
64
-
65
- await mountEditor(page, {
66
- appearance: fullpage.appearance,
67
- defaultValue: JSON.stringify(stickyTable),
68
- allowTables: {
69
- advanced: true,
70
- stickyHeaders: true,
71
- },
72
- });
73
-
74
- await page.waitForSelector('table');
75
-
76
- expect(
77
- await page.waitForSelector(tableSelectors.stickyTable, {}, true),
78
- ).toBeTruthy();
79
- expect(
80
- await page.waitForSelector(tableSelectors.stickyTr, {}, true),
81
- ).toBeTruthy();
82
-
83
- await scrollTo(page, window.innerHeight * 100);
84
-
85
- expect(await page.waitForSelector(tableSelectors.stickyTable)).toBeTruthy();
86
- expect(await page.waitForSelector(tableSelectors.stickyTr)).toBeTruthy();
87
-
88
- await scrollTo(page, 0);
89
-
90
- expect(
91
- await page.waitForSelector(tableSelectors.stickyTable, {}, true),
92
- ).toBeTruthy();
93
- expect(
94
- await page.waitForSelector(tableSelectors.stickyTr, {}, true),
95
- ).toBeTruthy();
96
- },
97
- );
98
-
99
- BrowserTestCase(
100
- 'Sticky header should still correctly toggle on and off, after a column has been added',
101
- { skip: ['safari'] },
102
- async (client: any, testName: string) => {
103
- const page = await goToEditorTestingWDExample(
104
- client,
105
- 'editor-plugin-table',
106
- );
107
-
108
- await mountEditor(page, {
109
- appearance: fullpage.appearance,
110
- defaultValue: JSON.stringify(stickyTable),
111
- allowTables: {
112
- advanced: true,
113
- stickyHeaders: true,
114
- },
115
- });
116
-
117
- await page.waitForSelector('table');
118
-
119
- expect(
120
- await page.waitForSelector(tableSelectors.stickyTable, {}, true),
121
- ).toBeTruthy();
122
- expect(
123
- await page.waitForSelector(tableSelectors.stickyTr, {}, true),
124
- ).toBeTruthy();
125
-
126
- await insertColumn(page, 'first');
127
-
128
- await scrollTo(page, window.innerHeight * 100);
129
-
130
- expect(await page.waitForSelector(tableSelectors.stickyTable)).toBeTruthy();
131
- expect(await page.waitForSelector(tableSelectors.stickyTr)).toBeTruthy();
132
- },
133
- );
@@ -1,71 +0,0 @@
1
- export {};
2
- test.todo('TODO [ED-15027]; restore unit');
3
-
4
- // //TODO: [ED-15027] remove and relocate this test once the behaviour has been corrected.\
5
- // import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
6
- // import { BrowserObject } from '@atlaskit/webdriver-runner/wd-wrapper';
7
- // import {
8
- // goToEditorTestingWDExample,
9
- // mountEditor,
10
- // } from '../../../../__tests__/__helpers/testing-example-helpers';
11
-
12
- // import {
13
- // fullpage,
14
- // expectToMatchSelection,
15
- // setProseMirrorTextSelection,
16
- // } from '../../../../__tests__/integration/_helpers';
17
- // import { WebDriverPage } from '../../../../__tests__/__helpers/page-objects/_types';
18
- // import adf from './__fixtures__/table-with-multiline-date.adf.json';
19
-
20
- // describe('table with multiline date', () => {
21
- // const initEditor = async ({
22
- // client,
23
- // selection,
24
- // adf,
25
- // }: {
26
- // client: BrowserObject;
27
- // selection: { anchor: number; head: number };
28
- // adf: string;
29
- // }): Promise<WebDriverPage> => {
30
- // const page = await goToEditorTestingWDExample(client);
31
- // const props = {
32
- // appearance: fullpage.appearance,
33
- // defaultValue: adf,
34
- // allowTextAlignment: true,
35
- // allowTables: {
36
- // advanced: true,
37
- // allowColumnResizing: true,
38
- // },
39
- // allowDate: true,
40
- // };
41
-
42
- // await mountEditor(page, props, undefined, { clickInEditor: false });
43
-
44
- // await page.waitForSelector('.inlineNodeView');
45
-
46
- // await setProseMirrorTextSelection(page, selection);
47
-
48
- // return page;
49
- // };
50
- // BrowserTestCase(
51
- // 'Does not select table corner controls when navigating up from a multiline node inside a table',
52
- // {
53
- // skip: ['firefox', 'safari'],
54
- // },
55
- // async (client: BrowserObject) => {
56
- // const page = await initEditor({
57
- // client,
58
- // selection: { anchor: 27, head: 27 },
59
- // adf,
60
- // });
61
-
62
- // await page.keys('ArrowUp');
63
-
64
- // await expectToMatchSelection(page, {
65
- // type: 'text',
66
- // anchor: 27,
67
- // head: 27,
68
- // });
69
- // },
70
- // );
71
- // });