@wordpress/e2e-tests 7.6.1 → 7.6.3
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.
|
3
|
+
"version": "7.6.3",
|
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.
|
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": "
|
48
|
+
"gitHead": "7efa7c2321a958ddfa723825a0354071435a9d43"
|
49
49
|
}
|
@@ -105,7 +105,8 @@ describe( 'Links', () => {
|
|
105
105
|
await waitForURLFieldAutoFocus();
|
106
106
|
|
107
107
|
const urlInputValue = await page.evaluate(
|
108
|
-
() =>
|
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(
|
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
|
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
|
-
|
589
|
-
|
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
|
-
|
618
|
-
|
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(
|
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',
|
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
|
883
|
-
await
|
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' );
|
@@ -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: '
|
82
|
+
title: 'Single Entries',
|
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
|
} );
|