@wordpress/e2e-tests 7.13.2 → 7.13.4
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.13.
|
3
|
+
"version": "7.13.4",
|
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.13.
|
27
|
-
"@wordpress/jest-console": "^7.13.
|
28
|
-
"@wordpress/jest-puppeteer-axe": "^6.13.
|
29
|
-
"@wordpress/scripts": "^26.13.
|
30
|
-
"@wordpress/url": "^3.43.
|
26
|
+
"@wordpress/e2e-test-utils": "^10.13.4",
|
27
|
+
"@wordpress/jest-console": "^7.13.4",
|
28
|
+
"@wordpress/jest-puppeteer-axe": "^6.13.4",
|
29
|
+
"@wordpress/scripts": "^26.13.4",
|
30
|
+
"@wordpress/url": "^3.43.4",
|
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": "d1072bbcaf037a18d414da7865ebaf366a0e7062"
|
49
49
|
}
|
@@ -249,7 +249,7 @@ describe( 'Inserting blocks', () => {
|
|
249
249
|
await page.keyboard.type( 'First paragraph' );
|
250
250
|
await insertBlock( 'Image' );
|
251
251
|
const paragraphBlock = await canvas().$(
|
252
|
-
'p[aria-label="Paragraph
|
252
|
+
'p[aria-label="Block: Paragraph"]'
|
253
253
|
);
|
254
254
|
paragraphBlock.click();
|
255
255
|
await page.evaluate( () => new Promise( window.requestIdleCallback ) );
|
@@ -35,7 +35,7 @@ const tabThroughParagraphBlock = async ( paragraphText ) => {
|
|
35
35
|
await tabThroughBlockToolbar();
|
36
36
|
|
37
37
|
await page.keyboard.press( 'Tab' );
|
38
|
-
await expect( await getActiveLabel() ).toBe( 'Paragraph
|
38
|
+
await expect( await getActiveLabel() ).toBe( 'Block: Paragraph' );
|
39
39
|
await expect(
|
40
40
|
await page.evaluate( () => {
|
41
41
|
const { activeElement } =
|
@@ -49,7 +49,7 @@ const tabThroughParagraphBlock = async ( paragraphText ) => {
|
|
49
49
|
|
50
50
|
// Need to shift+tab here to end back in the block. If not, we'll be in the next region and it will only require 4 region jumps instead of 5.
|
51
51
|
await pressKeyWithModifier( 'shift', 'Tab' );
|
52
|
-
await expect( await getActiveLabel() ).toBe( 'Paragraph
|
52
|
+
await expect( await getActiveLabel() ).toBe( 'Block: Paragraph' );
|
53
53
|
};
|
54
54
|
|
55
55
|
const tabThroughBlockToolbar = async () => {
|
@@ -136,7 +136,7 @@ describe( 'Pattern blocks', () => {
|
|
136
136
|
);
|
137
137
|
|
138
138
|
// Make sure the reusable block has loaded properly before attempting to publish the post.
|
139
|
-
await canvas().waitForSelector( 'p[aria-label="Paragraph
|
139
|
+
await canvas().waitForSelector( 'p[aria-label="Block: Paragraph"]' );
|
140
140
|
|
141
141
|
await publishPost();
|
142
142
|
|
@@ -146,8 +146,8 @@ describe( 'Pattern blocks', () => {
|
|
146
146
|
await page.waitForSelector( closePublishPanelSelector );
|
147
147
|
await page.click( closePublishPanelSelector );
|
148
148
|
|
149
|
-
await canvas().waitForSelector( 'p[aria-label="Paragraph
|
150
|
-
await canvas().focus( 'p[aria-label="Paragraph
|
149
|
+
await canvas().waitForSelector( 'p[aria-label="Block: Paragraph"]' );
|
150
|
+
await canvas().focus( 'p[aria-label="Block: Paragraph"]' );
|
151
151
|
|
152
152
|
// Change the block's content.
|
153
153
|
await page.keyboard.type( 'Einen ' );
|
@@ -157,7 +157,7 @@ describe( 'Pattern blocks', () => {
|
|
157
157
|
|
158
158
|
// Check that its content is up to date.
|
159
159
|
const paragraphContent = await canvas().$eval(
|
160
|
-
'p[aria-label="Paragraph
|
160
|
+
'p[aria-label="Block: Paragraph"]',
|
161
161
|
( element ) => element.innerText
|
162
162
|
);
|
163
163
|
expect( paragraphContent ).toMatch( 'Einen Guten Berg!' );
|
@@ -341,11 +341,11 @@ describe( 'Pattern blocks', () => {
|
|
341
341
|
|
342
342
|
// Make an edit to the reusable block and assert that there's only a
|
343
343
|
// paragraph in a reusable block.
|
344
|
-
await canvas().waitForSelector( 'p[aria-label="Paragraph
|
345
|
-
await canvas().click( 'p[aria-label="Paragraph
|
344
|
+
await canvas().waitForSelector( 'p[aria-label="Block: Paragraph"]' );
|
345
|
+
await canvas().click( 'p[aria-label="Block: Paragraph"]' );
|
346
346
|
await page.keyboard.type( '2' );
|
347
347
|
const selector =
|
348
|
-
'//div[@aria-label="Block: Pattern"]//p[@aria-label="Paragraph
|
348
|
+
'//div[@aria-label="Block: Pattern"]//p[@aria-label="Block: Paragraph"][.="12"]';
|
349
349
|
const reusableBlockWithParagraph = await page.$x( selector );
|
350
350
|
expect( reusableBlockWithParagraph ).toBeTruthy();
|
351
351
|
|
@@ -738,7 +738,7 @@ describe( 'Widgets screen', () => {
|
|
738
738
|
await find(
|
739
739
|
{
|
740
740
|
role: 'document',
|
741
|
-
name: 'Paragraph
|
741
|
+
name: 'Block: Paragraph',
|
742
742
|
value: 'First Paragraph',
|
743
743
|
},
|
744
744
|
{
|
@@ -759,7 +759,7 @@ describe( 'Widgets screen', () => {
|
|
759
759
|
await find(
|
760
760
|
{
|
761
761
|
role: 'document',
|
762
|
-
name: 'Paragraph
|
762
|
+
name: 'Block: Paragraph',
|
763
763
|
value: 'First Paragraph',
|
764
764
|
},
|
765
765
|
{
|
@@ -875,7 +875,7 @@ describe( 'Widgets screen', () => {
|
|
875
875
|
await page.keyboard.type( 'First Paragraph' );
|
876
876
|
const updatedParagraphBlockInFirstWidgetArea = await find(
|
877
877
|
{
|
878
|
-
name: 'Paragraph
|
878
|
+
name: 'Block: Paragraph',
|
879
879
|
value: 'First Paragraph',
|
880
880
|
},
|
881
881
|
{
|