@wordpress/e2e-tests 6.3.4 → 6.3.5

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": "6.3.4",
3
+ "version": "6.3.5",
4
4
  "description": "End-To-End (E2E) tests for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -23,7 +23,7 @@
23
23
  "node": ">=14"
24
24
  },
25
25
  "dependencies": {
26
- "@wordpress/e2e-test-utils": "^9.3.2",
26
+ "@wordpress/e2e-test-utils": "^9.3.3",
27
27
  "@wordpress/jest-console": "^6.9.1",
28
28
  "@wordpress/jest-puppeteer-axe": "^5.9.1",
29
29
  "@wordpress/scripts": "^25.3.4",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "1e2b2f680c6378f789d6660bc04b30e35e3a33a3"
49
+ "gitHead": "35f10c183655e9196d4ea12b8fa499a8ecbb7b6a"
50
50
  }
@@ -68,6 +68,6 @@ exports[`Links should contain a label when it should open in a new tab 1`] = `
68
68
 
69
69
  exports[`Links should contain a label when it should open in a new tab 2`] = `
70
70
  "<!-- wp:paragraph -->
71
- <p>This is <a href=\\"http://wordpress.org\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\">WordPress</a></p>
71
+ <p>This is <a href=\\"http://wordpress.org\\">WordPress</a></p>
72
72
  <!-- /wp:paragraph -->"
73
73
  `;
@@ -121,6 +121,7 @@ describe( 'Links', () => {
121
121
 
122
122
  // Navigate to and toggle the "Open in new tab" checkbox.
123
123
  await page.keyboard.press( 'Tab' );
124
+ await page.keyboard.press( 'Tab' );
124
125
  await page.keyboard.press( 'Space' );
125
126
 
126
127
  // Toggle should still have focus and be checked.
@@ -133,7 +134,7 @@ describe( 'Links', () => {
133
134
  expect( await getEditedPostContent() ).toMatchSnapshot();
134
135
 
135
136
  // Tab back to the Submit and apply the link.
136
- await page.keyboard.press( 'Tab' );
137
+ await pressKeyWithModifier( 'shift', 'Tab' );
137
138
  await page.keyboard.press( 'Enter' );
138
139
 
139
140
  // The link should have been inserted.
@@ -526,6 +527,7 @@ describe( 'Links', () => {
526
527
 
527
528
  // Navigate to and toggle the "Open in new tab" checkbox.
528
529
  await page.keyboard.press( 'Tab' );
530
+ await page.keyboard.press( 'Tab' );
529
531
  await page.keyboard.press( 'Space' );
530
532
 
531
533
  // Confirm that focus was not prematurely returned to the paragraph on
@@ -534,8 +536,7 @@ describe( 'Links', () => {
534
536
 
535
537
  // Close dialog. Expect that "Open in new tab" would have been applied
536
538
  // immediately.
537
-
538
- await pressKeyWithModifier( 'shift', 'Tab' );
539
+ await page.keyboard.press( 'Tab' );
539
540
  await page.keyboard.press( 'Enter' );
540
541
 
541
542
  // Wait for Gutenberg to finish the job.
@@ -765,7 +766,6 @@ describe( 'Links', () => {
765
766
  await page.keyboard.press( 'Tab' );
766
767
  await page.keyboard.press( 'Tab' );
767
768
  await page.keyboard.press( 'Tab' );
768
- await page.keyboard.press( 'Tab' );
769
769
 
770
770
  // Make a selection within the RichText.
771
771
  await pressKeyWithModifier( 'shift', 'ArrowRight' );
@@ -120,7 +120,7 @@ describe( 'Site Editor Performance', () => {
120
120
  '[data-type="core/post-content"] [data-type="core/paragraph"]'
121
121
  );
122
122
  await enterEditMode();
123
- await canvas().click(
123
+ await canvas().focus(
124
124
  '[data-type="core/post-content"] [data-type="core/paragraph"]'
125
125
  );
126
126
  await insertBlock( 'Paragraph' );