@wordpress/e2e-tests 5.1.3 → 5.1.4
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.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wordpress/e2e-tests",
|
3
|
-
"version": "5.1.
|
3
|
+
"version": "5.1.4",
|
4
4
|
"description": "End-To-End (E2E) tests for WordPress.",
|
5
5
|
"author": "The WordPress Contributors",
|
6
6
|
"license": "GPL-2.0-or-later",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"publishConfig": {
|
47
47
|
"access": "public"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "06334a7bd943f2345f15b8d2f427721d6878e6c1"
|
50
50
|
}
|
@@ -85,9 +85,9 @@ describe( 'Block Switcher', () => {
|
|
85
85
|
await pressKeyWithModifier( 'alt', 'F10' );
|
86
86
|
|
87
87
|
// Verify the block switcher exists.
|
88
|
-
expect( await hasBlockSwitcher() ).
|
88
|
+
expect( await hasBlockSwitcher() ).toBeTruthy();
|
89
89
|
// Verify the correct block transforms appear.
|
90
|
-
expect( await getAvailableBlockTransforms() ).toHaveLength(
|
90
|
+
expect( await getAvailableBlockTransforms() ).toHaveLength( 1 );
|
91
91
|
} );
|
92
92
|
|
93
93
|
describe( 'Conditional tranformation options', () => {
|
@@ -236,6 +236,20 @@ describe( 'splitting and merging blocks', () => {
|
|
236
236
|
await page.keyboard.press( 'Enter' );
|
237
237
|
await page.keyboard.type( 'item 2' );
|
238
238
|
await pressKeyTimes( 'ArrowUp', 5 );
|
239
|
+
await page.keyboard.press( 'Delete' );
|
240
|
+
expect( await getEditedPostContent() ).toMatchInlineSnapshot( `
|
241
|
+
"<!-- wp:paragraph -->
|
242
|
+
<p>hi</p>
|
243
|
+
<!-- /wp:paragraph -->
|
244
|
+
|
245
|
+
<!-- wp:paragraph -->
|
246
|
+
<p>item 1</p>
|
247
|
+
<!-- /wp:paragraph -->
|
248
|
+
|
249
|
+
<!-- wp:paragraph -->
|
250
|
+
<p>item 2</p>
|
251
|
+
<!-- /wp:paragraph -->"
|
252
|
+
` );
|
239
253
|
await page.keyboard.press( 'Delete' );
|
240
254
|
// Carret should be in the first block and at the proper position.
|
241
255
|
await page.keyboard.type( '-' );
|
@@ -260,15 +274,25 @@ describe( 'splitting and merging blocks', () => {
|
|
260
274
|
await page.keyboard.press( 'ArrowUp' );
|
261
275
|
await pressKeyTimes( 'ArrowLeft', 6 );
|
262
276
|
await page.keyboard.press( 'Backspace' );
|
263
|
-
// Carret should be in the first block and at the proper position.
|
264
|
-
await page.keyboard.type( '-' );
|
265
277
|
expect( await getEditedPostContent() ).toMatchInlineSnapshot( `
|
266
278
|
"<!-- wp:paragraph -->
|
267
279
|
<p>hi</p>
|
268
280
|
<!-- /wp:paragraph -->
|
269
281
|
|
270
282
|
<!-- wp:paragraph -->
|
271
|
-
<p
|
283
|
+
<p>item 1</p>
|
284
|
+
<!-- /wp:paragraph -->
|
285
|
+
|
286
|
+
<!-- wp:paragraph -->
|
287
|
+
<p>item 2</p>
|
288
|
+
<!-- /wp:paragraph -->"
|
289
|
+
` );
|
290
|
+
await page.keyboard.press( 'Backspace' );
|
291
|
+
// Carret should be in the first block and at the proper position.
|
292
|
+
await page.keyboard.type( '-' );
|
293
|
+
expect( await getEditedPostContent() ).toMatchInlineSnapshot( `
|
294
|
+
"<!-- wp:paragraph -->
|
295
|
+
<p>hi-item 1</p>
|
272
296
|
<!-- /wp:paragraph -->
|
273
297
|
|
274
298
|
<!-- wp:paragraph -->
|