@wordpress/e2e-tests 7.6.2 → 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 +2 -0
- package/package.json +7 -7
- package/specs/editor/various/links.test.js +11 -18
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wordpress/e2e-tests",
|
3
|
-
"version": "7.
|
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.
|
27
|
-
"@wordpress/jest-console": "^7.
|
28
|
-
"@wordpress/jest-puppeteer-axe": "^6.
|
29
|
-
"@wordpress/scripts": "^26.
|
30
|
-
"@wordpress/url": "^3.
|
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": "
|
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(
|
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
|
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
|
-
|
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
|
-
|
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(
|
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',
|
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
|
887
|
-
await
|
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' );
|