@wordpress/e2e-tests 7.6.1 → 7.6.2

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": "7.6.1",
3
+ "version": "7.6.2",
4
4
  "description": "End-To-End (E2E) tests for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -26,7 +26,7 @@
26
26
  "@wordpress/e2e-test-utils": "^10.6.1",
27
27
  "@wordpress/jest-console": "^7.6.1",
28
28
  "@wordpress/jest-puppeteer-axe": "^6.6.1",
29
- "@wordpress/scripts": "^26.6.1",
29
+ "@wordpress/scripts": "^26.6.2",
30
30
  "@wordpress/url": "^3.36.1",
31
31
  "chalk": "^4.0.0",
32
32
  "expect-puppeteer": "^4.4.0",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "ce5639111c30763dbdf07f40eeb136ea6030ecf1"
48
+ "gitHead": "a00463f06c90ae6705951861eb889e67a52bf448"
49
49
  }
@@ -105,7 +105,8 @@ describe( 'Links', () => {
105
105
  await waitForURLFieldAutoFocus();
106
106
 
107
107
  const urlInputValue = await page.evaluate(
108
- () => document.querySelector( '[aria-label="URL"]' ).value
108
+ () =>
109
+ document.querySelector( '.block-editor-url-input__input' ).value
109
110
  );
110
111
 
111
112
  expect( urlInputValue ).toBe( '' );
@@ -496,7 +497,7 @@ describe( 'Links', () => {
496
497
  await pressKeyWithModifier( 'primary', 'K' );
497
498
 
498
499
  const [ settingsToggle ] = await page.$x(
499
- '//button[contains(@aria-label, "Link Settings")]'
500
+ '//button[contains(text(), "Advanced")]'
500
501
  );
501
502
  await settingsToggle.click();
502
503
 
@@ -528,7 +529,7 @@ describe( 'Links', () => {
528
529
 
529
530
  await waitForURLFieldAutoFocus();
530
531
 
531
- await page.keyboard.press( 'Tab' );
532
+ await pressKeyWithModifier( 'shift', 'Tab' );
532
533
 
533
534
  // Tabbing should land us in the text input.
534
535
  const { isTextInput, textValue } = await page.evaluate( () => {
@@ -585,8 +586,10 @@ describe( 'Links', () => {
585
586
 
586
587
  await editButton.click();
587
588
 
588
- // Tabbing forward should land us in the "Text" input.
589
- await page.keyboard.press( 'Tab' );
589
+ await waitForURLFieldAutoFocus();
590
+
591
+ // Tabbing backward should land us in the "Text" input.
592
+ await pressKeyWithModifier( 'shift', 'Tab' );
590
593
 
591
594
  const textInputValue = await page.evaluate(
592
595
  () => document.activeElement.value
@@ -614,8 +617,9 @@ describe( 'Links', () => {
614
617
  );
615
618
  await editButton.click();
616
619
 
617
- // tab forward to the text input.
618
- await page.keyboard.press( 'Tab' );
620
+ await waitForURLFieldAutoFocus();
621
+
622
+ await pressKeyWithModifier( 'shift', 'Tab' );
619
623
 
620
624
  const textInputValue = await page.evaluate(
621
625
  () => document.activeElement.value
@@ -661,7 +665,7 @@ describe( 'Links', () => {
661
665
  await waitForURLFieldAutoFocus();
662
666
 
663
667
  const [ settingsToggle ] = await page.$x(
664
- '//button[contains(@aria-label, "Link Settings")]'
668
+ '//button[contains(text(), "Advanced")]'
665
669
  );
666
670
  await settingsToggle.click();
667
671
 
@@ -679,7 +683,7 @@ describe( 'Links', () => {
679
683
  await pressKeyWithModifier( 'shift', 'ArrowRight' );
680
684
 
681
685
  // Move back to the text input.
682
- await pressKeyTimes( 'Tab', 2 );
686
+ await pressKeyTimes( 'Tab', 1 );
683
687
 
684
688
  // Tabbing back should land us in the text input.
685
689
  const textInputValue = await page.evaluate(
@@ -879,8 +883,11 @@ describe( 'Links', () => {
879
883
 
880
884
  await waitForURLFieldAutoFocus();
881
885
 
882
- // Move to Link Text field.
883
- await page.keyboard.press( 'Tab' );
886
+ // Move to "Text" field.
887
+ await pressKeyWithModifier( 'shift', 'Tab' );
888
+
889
+ // Delete existing value from "Text" field
890
+ await page.keyboard.press( 'Delete' );
884
891
 
885
892
  // Change text to "z"
886
893
  await page.keyboard.type( 'z' );