@atlaskit/editor-plugin-table 5.4.5 → 5.4.7

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 (115) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/plugins/table/commands/insert.js +12 -2
  3. package/dist/cjs/plugins/table/commands/misc.js +49 -1
  4. package/dist/cjs/plugins/table/index.js +46 -35
  5. package/dist/cjs/plugins/table/nodeviews/TableComponent.js +12 -16
  6. package/dist/cjs/plugins/table/nodeviews/TableResizer.js +1 -1
  7. package/dist/cjs/plugins/table/nodeviews/table.js +3 -1
  8. package/dist/cjs/plugins/table/pm-plugins/analytics/actions.js +14 -0
  9. package/dist/cjs/plugins/table/pm-plugins/analytics/commands.js +45 -0
  10. package/dist/cjs/plugins/table/pm-plugins/analytics/plugin-factory.js +13 -0
  11. package/dist/cjs/plugins/table/pm-plugins/analytics/plugin-key.js +8 -0
  12. package/dist/cjs/plugins/table/pm-plugins/analytics/plugin.js +74 -0
  13. package/dist/cjs/plugins/table/pm-plugins/analytics/reducer.js +26 -0
  14. package/dist/cjs/plugins/table/pm-plugins/analytics/types.js +13 -0
  15. package/dist/cjs/plugins/table/pm-plugins/analytics/utils/moved-event.js +38 -0
  16. package/dist/cjs/plugins/table/pm-plugins/main.js +1 -1
  17. package/dist/cjs/plugins/table/pm-plugins/table-analytics.js +1 -1
  18. package/dist/es2019/plugins/table/commands/insert.js +12 -3
  19. package/dist/es2019/plugins/table/commands/misc.js +49 -0
  20. package/dist/es2019/plugins/table/index.js +14 -4
  21. package/dist/es2019/plugins/table/nodeviews/TableComponent.js +13 -17
  22. package/dist/es2019/plugins/table/nodeviews/TableResizer.js +1 -1
  23. package/dist/es2019/plugins/table/nodeviews/table.js +3 -1
  24. package/dist/es2019/plugins/table/pm-plugins/analytics/actions.js +8 -0
  25. package/dist/es2019/plugins/table/pm-plugins/analytics/commands.js +33 -0
  26. package/dist/es2019/plugins/table/pm-plugins/analytics/plugin-factory.js +8 -0
  27. package/dist/es2019/plugins/table/pm-plugins/analytics/plugin-key.js +2 -0
  28. package/dist/es2019/plugins/table/pm-plugins/analytics/plugin.js +72 -0
  29. package/dist/es2019/plugins/table/pm-plugins/analytics/reducer.js +21 -0
  30. package/dist/es2019/plugins/table/pm-plugins/analytics/types.js +7 -0
  31. package/dist/es2019/plugins/table/pm-plugins/analytics/utils/moved-event.js +30 -0
  32. package/dist/es2019/plugins/table/pm-plugins/main.js +1 -1
  33. package/dist/es2019/plugins/table/pm-plugins/table-analytics.js +1 -1
  34. package/dist/esm/plugins/table/commands/insert.js +12 -3
  35. package/dist/esm/plugins/table/commands/misc.js +48 -0
  36. package/dist/esm/plugins/table/index.js +43 -32
  37. package/dist/esm/plugins/table/nodeviews/TableComponent.js +13 -17
  38. package/dist/esm/plugins/table/nodeviews/TableResizer.js +1 -1
  39. package/dist/esm/plugins/table/nodeviews/table.js +3 -1
  40. package/dist/esm/plugins/table/pm-plugins/analytics/actions.js +8 -0
  41. package/dist/esm/plugins/table/pm-plugins/analytics/commands.js +39 -0
  42. package/dist/esm/plugins/table/pm-plugins/analytics/plugin-factory.js +8 -0
  43. package/dist/esm/plugins/table/pm-plugins/analytics/plugin-key.js +2 -0
  44. package/dist/esm/plugins/table/pm-plugins/analytics/plugin.js +68 -0
  45. package/dist/esm/plugins/table/pm-plugins/analytics/reducer.js +19 -0
  46. package/dist/esm/plugins/table/pm-plugins/analytics/types.js +7 -0
  47. package/dist/esm/plugins/table/pm-plugins/analytics/utils/moved-event.js +31 -0
  48. package/dist/esm/plugins/table/pm-plugins/main.js +1 -1
  49. package/dist/esm/plugins/table/pm-plugins/table-analytics.js +1 -1
  50. package/dist/types/plugins/table/commands/misc.d.ts +5 -1
  51. package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +2 -0
  52. package/dist/types/plugins/table/nodeviews/table.d.ts +2 -1
  53. package/dist/types/plugins/table/nodeviews/types.d.ts +2 -0
  54. package/dist/types/plugins/table/pm-plugins/analytics/actions.d.ts +17 -0
  55. package/dist/types/plugins/table/pm-plugins/analytics/commands.d.ts +5 -0
  56. package/dist/types/plugins/table/pm-plugins/analytics/plugin-factory.d.ts +1 -0
  57. package/dist/types/plugins/table/pm-plugins/analytics/plugin-key.d.ts +3 -0
  58. package/dist/types/plugins/table/pm-plugins/analytics/plugin.d.ts +4 -0
  59. package/dist/types/plugins/table/pm-plugins/analytics/reducer.d.ts +3 -0
  60. package/dist/types/plugins/table/pm-plugins/analytics/types.d.ts +11 -0
  61. package/dist/types/plugins/table/pm-plugins/analytics/utils/moved-event.d.ts +6 -0
  62. package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +5 -1
  63. package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +2 -0
  64. package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +2 -1
  65. package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +2 -0
  66. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/actions.d.ts +17 -0
  67. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/commands.d.ts +5 -0
  68. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/plugin-factory.d.ts +1 -0
  69. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/plugin-key.d.ts +3 -0
  70. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/plugin.d.ts +4 -0
  71. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/reducer.d.ts +3 -0
  72. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/types.d.ts +11 -0
  73. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/utils/moved-event.d.ts +6 -0
  74. package/package.json +7 -4
  75. package/src/__tests__/unit/index-with-fake-timers.ts +1 -0
  76. package/src/__tests__/unit/nodeviews/table.ts +1 -0
  77. package/src/__tests__/unit/pm-plugins/analytics.ts +327 -0
  78. package/src/plugins/table/commands/insert.ts +23 -2
  79. package/src/plugins/table/commands/misc.ts +84 -1
  80. package/src/plugins/table/index.tsx +13 -6
  81. package/src/plugins/table/nodeviews/TableComponent.tsx +15 -22
  82. package/src/plugins/table/nodeviews/TableResizer.tsx +1 -2
  83. package/src/plugins/table/nodeviews/table.tsx +4 -0
  84. package/src/plugins/table/nodeviews/types.ts +2 -0
  85. package/src/plugins/table/pm-plugins/analytics/actions.ts +23 -0
  86. package/src/plugins/table/pm-plugins/analytics/commands.ts +53 -0
  87. package/src/plugins/table/pm-plugins/analytics/plugin-factory.ts +7 -0
  88. package/src/plugins/table/pm-plugins/analytics/plugin-key.ts +7 -0
  89. package/src/plugins/table/pm-plugins/analytics/plugin.ts +98 -0
  90. package/src/plugins/table/pm-plugins/analytics/reducer.ts +27 -0
  91. package/src/plugins/table/pm-plugins/analytics/types.ts +20 -0
  92. package/src/plugins/table/pm-plugins/analytics/utils/moved-event.ts +51 -0
  93. package/src/plugins/table/pm-plugins/main.ts +1 -0
  94. package/src/plugins/table/pm-plugins/table-analytics.ts +1 -1
  95. package/tsconfig.dev.json +3 -3
  96. package/src/__tests__/integration/__fixtures__/auto-size-documents.ts +0 -434
  97. package/src/__tests__/integration/__fixtures__/basic-table-with-merged-cell.ts +0 -112
  98. package/src/__tests__/integration/__fixtures__/basic-table.ts +0 -120
  99. package/src/__tests__/integration/__fixtures__/empty-layout.ts +0 -35
  100. package/src/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +0 -396
  101. package/src/__tests__/integration/__fixtures__/even-columns.ts +0 -493
  102. package/src/__tests__/integration/__fixtures__/layout-documents.ts +0 -606
  103. package/src/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +0 -343
  104. package/src/__tests__/integration/__fixtures__/nested-in-expand.ts +0 -129
  105. package/src/__tests__/integration/__fixtures__/nested-in-extension.ts +0 -163
  106. package/src/__tests__/integration/__fixtures__/paragraph-and-table-adf.ts +0 -132
  107. package/src/__tests__/integration/__fixtures__/resize-documents.ts +0 -1605
  108. package/src/__tests__/integration/__fixtures__/scale.ts +0 -825
  109. package/src/__tests__/integration/__fixtures__/table-inside-layout.ts +0 -145
  110. package/src/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +0 -175
  111. package/src/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +0 -168
  112. package/src/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +0 -216
  113. package/src/__tests__/integration/__snapshots__/copy-button.ts.snap +0 -423
  114. package/src/__tests__/integration/copy-button.ts +0 -179
  115. package/src/__tests__/integration/table-controls-selection.ts +0 -71
@@ -1,423 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Copy block with floating toolbar copy button 1`] = `
4
- Object {
5
- "content": Array [
6
- Object {
7
- "attrs": Object {
8
- "__autoSize": false,
9
- "isNumberColumnEnabled": false,
10
- "layout": "default",
11
- "localId": "abc-123",
12
- "width": null,
13
- },
14
- "content": Array [
15
- Object {
16
- "content": Array [
17
- Object {
18
- "attrs": Object {
19
- "background": null,
20
- "colspan": 1,
21
- "colwidth": null,
22
- "rowspan": 1,
23
- },
24
- "content": Array [
25
- Object {
26
- "content": Array [
27
- Object {
28
- "text": "1",
29
- "type": "text",
30
- },
31
- ],
32
- "type": "paragraph",
33
- },
34
- ],
35
- "type": "tableHeader",
36
- },
37
- Object {
38
- "attrs": Object {
39
- "background": null,
40
- "colspan": 1,
41
- "colwidth": null,
42
- "rowspan": 1,
43
- },
44
- "content": Array [
45
- Object {
46
- "content": Array [
47
- Object {
48
- "text": "2",
49
- "type": "text",
50
- },
51
- ],
52
- "type": "paragraph",
53
- },
54
- ],
55
- "type": "tableHeader",
56
- },
57
- Object {
58
- "attrs": Object {
59
- "background": null,
60
- "colspan": 1,
61
- "colwidth": null,
62
- "rowspan": 1,
63
- },
64
- "content": Array [
65
- Object {
66
- "content": Array [
67
- Object {
68
- "text": "3",
69
- "type": "text",
70
- },
71
- ],
72
- "type": "paragraph",
73
- },
74
- ],
75
- "type": "tableHeader",
76
- },
77
- ],
78
- "type": "tableRow",
79
- },
80
- Object {
81
- "content": Array [
82
- Object {
83
- "attrs": Object {
84
- "background": null,
85
- "colspan": 1,
86
- "colwidth": null,
87
- "rowspan": 1,
88
- },
89
- "content": Array [
90
- Object {
91
- "content": Array [
92
- Object {
93
- "text": "4",
94
- "type": "text",
95
- },
96
- ],
97
- "type": "paragraph",
98
- },
99
- ],
100
- "type": "tableCell",
101
- },
102
- Object {
103
- "attrs": Object {
104
- "background": null,
105
- "colspan": 1,
106
- "colwidth": null,
107
- "rowspan": 1,
108
- },
109
- "content": Array [
110
- Object {
111
- "content": Array [
112
- Object {
113
- "text": "5",
114
- "type": "text",
115
- },
116
- ],
117
- "type": "paragraph",
118
- },
119
- ],
120
- "type": "tableCell",
121
- },
122
- Object {
123
- "attrs": Object {
124
- "background": null,
125
- "colspan": 1,
126
- "colwidth": null,
127
- "rowspan": 1,
128
- },
129
- "content": Array [
130
- Object {
131
- "content": Array [
132
- Object {
133
- "text": "6",
134
- "type": "text",
135
- },
136
- ],
137
- "type": "paragraph",
138
- },
139
- ],
140
- "type": "tableCell",
141
- },
142
- ],
143
- "type": "tableRow",
144
- },
145
- Object {
146
- "content": Array [
147
- Object {
148
- "attrs": Object {
149
- "background": null,
150
- "colspan": 1,
151
- "colwidth": null,
152
- "rowspan": 1,
153
- },
154
- "content": Array [
155
- Object {
156
- "content": Array [
157
- Object {
158
- "text": "7",
159
- "type": "text",
160
- },
161
- ],
162
- "type": "paragraph",
163
- },
164
- ],
165
- "type": "tableCell",
166
- },
167
- Object {
168
- "attrs": Object {
169
- "background": null,
170
- "colspan": 1,
171
- "colwidth": null,
172
- "rowspan": 1,
173
- },
174
- "content": Array [
175
- Object {
176
- "content": Array [
177
- Object {
178
- "text": "8",
179
- "type": "text",
180
- },
181
- ],
182
- "type": "paragraph",
183
- },
184
- ],
185
- "type": "tableCell",
186
- },
187
- Object {
188
- "attrs": Object {
189
- "background": null,
190
- "colspan": 1,
191
- "colwidth": null,
192
- "rowspan": 1,
193
- },
194
- "content": Array [
195
- Object {
196
- "content": Array [
197
- Object {
198
- "text": "9",
199
- "type": "text",
200
- },
201
- ],
202
- "type": "paragraph",
203
- },
204
- ],
205
- "type": "tableCell",
206
- },
207
- ],
208
- "type": "tableRow",
209
- },
210
- ],
211
- "type": "table",
212
- },
213
- Object {
214
- "attrs": Object {
215
- "__autoSize": false,
216
- "isNumberColumnEnabled": false,
217
- "layout": "default",
218
- "localId": "abc-123",
219
- "width": null,
220
- },
221
- "content": Array [
222
- Object {
223
- "content": Array [
224
- Object {
225
- "attrs": Object {
226
- "background": null,
227
- "colspan": 1,
228
- "colwidth": null,
229
- "rowspan": 1,
230
- },
231
- "content": Array [
232
- Object {
233
- "content": Array [
234
- Object {
235
- "text": "1",
236
- "type": "text",
237
- },
238
- ],
239
- "type": "paragraph",
240
- },
241
- ],
242
- "type": "tableHeader",
243
- },
244
- Object {
245
- "attrs": Object {
246
- "background": null,
247
- "colspan": 1,
248
- "colwidth": null,
249
- "rowspan": 1,
250
- },
251
- "content": Array [
252
- Object {
253
- "content": Array [
254
- Object {
255
- "text": "2",
256
- "type": "text",
257
- },
258
- ],
259
- "type": "paragraph",
260
- },
261
- ],
262
- "type": "tableHeader",
263
- },
264
- Object {
265
- "attrs": Object {
266
- "background": null,
267
- "colspan": 1,
268
- "colwidth": null,
269
- "rowspan": 1,
270
- },
271
- "content": Array [
272
- Object {
273
- "content": Array [
274
- Object {
275
- "text": "3",
276
- "type": "text",
277
- },
278
- ],
279
- "type": "paragraph",
280
- },
281
- ],
282
- "type": "tableHeader",
283
- },
284
- ],
285
- "type": "tableRow",
286
- },
287
- Object {
288
- "content": Array [
289
- Object {
290
- "attrs": Object {
291
- "background": null,
292
- "colspan": 1,
293
- "colwidth": null,
294
- "rowspan": 1,
295
- },
296
- "content": Array [
297
- Object {
298
- "content": Array [
299
- Object {
300
- "text": "4",
301
- "type": "text",
302
- },
303
- ],
304
- "type": "paragraph",
305
- },
306
- ],
307
- "type": "tableCell",
308
- },
309
- Object {
310
- "attrs": Object {
311
- "background": null,
312
- "colspan": 1,
313
- "colwidth": null,
314
- "rowspan": 1,
315
- },
316
- "content": Array [
317
- Object {
318
- "content": Array [
319
- Object {
320
- "text": "5",
321
- "type": "text",
322
- },
323
- ],
324
- "type": "paragraph",
325
- },
326
- ],
327
- "type": "tableCell",
328
- },
329
- Object {
330
- "attrs": Object {
331
- "background": null,
332
- "colspan": 1,
333
- "colwidth": null,
334
- "rowspan": 1,
335
- },
336
- "content": Array [
337
- Object {
338
- "content": Array [
339
- Object {
340
- "text": "6",
341
- "type": "text",
342
- },
343
- ],
344
- "type": "paragraph",
345
- },
346
- ],
347
- "type": "tableCell",
348
- },
349
- ],
350
- "type": "tableRow",
351
- },
352
- Object {
353
- "content": Array [
354
- Object {
355
- "attrs": Object {
356
- "background": null,
357
- "colspan": 1,
358
- "colwidth": null,
359
- "rowspan": 1,
360
- },
361
- "content": Array [
362
- Object {
363
- "content": Array [
364
- Object {
365
- "text": "7",
366
- "type": "text",
367
- },
368
- ],
369
- "type": "paragraph",
370
- },
371
- ],
372
- "type": "tableCell",
373
- },
374
- Object {
375
- "attrs": Object {
376
- "background": null,
377
- "colspan": 1,
378
- "colwidth": null,
379
- "rowspan": 1,
380
- },
381
- "content": Array [
382
- Object {
383
- "content": Array [
384
- Object {
385
- "text": "8",
386
- "type": "text",
387
- },
388
- ],
389
- "type": "paragraph",
390
- },
391
- ],
392
- "type": "tableCell",
393
- },
394
- Object {
395
- "attrs": Object {
396
- "background": null,
397
- "colspan": 1,
398
- "colwidth": null,
399
- "rowspan": 1,
400
- },
401
- "content": Array [
402
- Object {
403
- "content": Array [
404
- Object {
405
- "text": "9",
406
- "type": "text",
407
- },
408
- ],
409
- "type": "paragraph",
410
- },
411
- ],
412
- "type": "tableCell",
413
- },
414
- ],
415
- "type": "tableRow",
416
- },
417
- ],
418
- "type": "table",
419
- },
420
- ],
421
- "type": "doc",
422
- }
423
- `;
@@ -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,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
- // });