@wordpress/e2e-tests 7.6.3 → 7.7.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 7.7.0 (2023-06-23)
6
+
5
7
  ## 7.6.0 (2023-06-07)
6
8
 
7
9
  ## 7.5.0 (2023-05-24)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/e2e-tests",
3
- "version": "7.6.3",
3
+ "version": "7.7.0",
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,11 +23,11 @@
23
23
  "node": ">=14"
24
24
  },
25
25
  "dependencies": {
26
- "@wordpress/e2e-test-utils": "^10.6.1",
27
- "@wordpress/jest-console": "^7.6.1",
28
- "@wordpress/jest-puppeteer-axe": "^6.6.1",
29
- "@wordpress/scripts": "^26.6.2",
30
- "@wordpress/url": "^3.36.1",
26
+ "@wordpress/e2e-test-utils": "^10.7.0",
27
+ "@wordpress/jest-console": "^7.7.0",
28
+ "@wordpress/jest-puppeteer-axe": "^6.7.0",
29
+ "@wordpress/scripts": "^26.7.0",
30
+ "@wordpress/url": "^3.37.0",
31
31
  "chalk": "^4.0.0",
32
32
  "expect-puppeteer": "^4.4.0",
33
33
  "filenamify": "^4.2.0",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "7efa7c2321a958ddfa723825a0354071435a9d43"
48
+ "gitHead": "d47d8069e1aae05d4a16dc287902eb90edcbff50"
49
49
  }
@@ -105,8 +105,7 @@ describe( 'Links', () => {
105
105
  await waitForURLFieldAutoFocus();
106
106
 
107
107
  const urlInputValue = await page.evaluate(
108
- () =>
109
- document.querySelector( '.block-editor-url-input__input' ).value
108
+ () => document.querySelector( '[aria-label="URL"]' ).value
110
109
  );
111
110
 
112
111
  expect( urlInputValue ).toBe( '' );
@@ -497,7 +496,7 @@ describe( 'Links', () => {
497
496
  await pressKeyWithModifier( 'primary', 'K' );
498
497
 
499
498
  const [ settingsToggle ] = await page.$x(
500
- '//button[contains(text(), "Advanced")]'
499
+ '//button[contains(@aria-label, "Link Settings")]'
501
500
  );
502
501
  await settingsToggle.click();
503
502
 
@@ -529,7 +528,7 @@ describe( 'Links', () => {
529
528
 
530
529
  await waitForURLFieldAutoFocus();
531
530
 
532
- await pressKeyWithModifier( 'shift', 'Tab' );
531
+ await page.keyboard.press( 'Tab' );
533
532
 
534
533
  // Tabbing should land us in the text input.
535
534
  const { isTextInput, textValue } = await page.evaluate( () => {
@@ -586,10 +585,8 @@ describe( 'Links', () => {
586
585
 
587
586
  await editButton.click();
588
587
 
589
- await waitForURLFieldAutoFocus();
590
-
591
- // Tabbing backward should land us in the "Text" input.
592
- await pressKeyWithModifier( 'shift', 'Tab' );
588
+ // Tabbing forward should land us in the "Text" input.
589
+ await page.keyboard.press( 'Tab' );
593
590
 
594
591
  const textInputValue = await page.evaluate(
595
592
  () => document.activeElement.value
@@ -617,9 +614,8 @@ describe( 'Links', () => {
617
614
  );
618
615
  await editButton.click();
619
616
 
620
- await waitForURLFieldAutoFocus();
621
-
622
- await pressKeyWithModifier( 'shift', 'Tab' );
617
+ // tab forward to the text input.
618
+ await page.keyboard.press( 'Tab' );
623
619
 
624
620
  const textInputValue = await page.evaluate(
625
621
  () => document.activeElement.value
@@ -665,7 +661,7 @@ describe( 'Links', () => {
665
661
  await waitForURLFieldAutoFocus();
666
662
 
667
663
  const [ settingsToggle ] = await page.$x(
668
- '//button[contains(text(), "Advanced")]'
664
+ '//button[contains(@aria-label, "Link Settings")]'
669
665
  );
670
666
  await settingsToggle.click();
671
667
 
@@ -683,7 +679,7 @@ describe( 'Links', () => {
683
679
  await pressKeyWithModifier( 'shift', 'ArrowRight' );
684
680
 
685
681
  // Move back to the text input.
686
- await pressKeyTimes( 'Tab', 1 );
682
+ await pressKeyTimes( 'Tab', 2 );
687
683
 
688
684
  // Tabbing back should land us in the text input.
689
685
  const textInputValue = await page.evaluate(
@@ -883,11 +879,8 @@ describe( 'Links', () => {
883
879
 
884
880
  await waitForURLFieldAutoFocus();
885
881
 
886
- // Move to "Text" field.
887
- await pressKeyWithModifier( 'shift', 'Tab' );
888
-
889
- // Delete existing value from "Text" field
890
- await page.keyboard.press( 'Delete' );
882
+ // Move to Link Text field.
883
+ await page.keyboard.press( 'Tab' );
891
884
 
892
885
  // Change text to "z"
893
886
  await page.keyboard.type( 'z' );
@@ -37,7 +37,7 @@ describe( 'Post Comments Form', () => {
37
37
  );
38
38
  await expect( page ).toClick(
39
39
  '.edit-site-sidebar-navigation-item',
40
- { text: /single entries/i }
40
+ { text: /singular/i }
41
41
  );
42
42
  await enterEditMode();
43
43
 
@@ -79,7 +79,7 @@ describe( 'Settings sidebar', () => {
79
79
  'Used as a fallback template for all pages when a more specific template is not defined.',
80
80
  } );
81
81
  expect( templateCardAfterNavigation ).toMatchObject( {
82
- title: 'Single Entries',
82
+ title: 'Singular',
83
83
  description:
84
84
  'Displays any single entry, such as a post or a page. This template will serve as a fallback when a more specific template (e.g., Single Post, Page, or Attachment) cannot be found.',
85
85
  } );