Update WC blocks wp-env to use WP 6.6 RC1 (#49037)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
85cedf2d2b
commit
20e7128775
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"core": "https://wordpress.org/wordpress-6.6-beta3.zip",
|
||||
"core": "https://wordpress.org/wordpress-6.6-RC2.zip",
|
||||
"plugins": [
|
||||
"https://github.com/WP-API/Basic-Auth/archive/master.zip",
|
||||
"https://downloads.wordpress.org/plugin/wordpress-importer.0.8.zip",
|
||||
|
|
|
@ -358,6 +358,7 @@
|
|||
"name": "JavaScript",
|
||||
"command": "test:js",
|
||||
"changes": [
|
||||
".wp-env.json",
|
||||
"webpack.config.js",
|
||||
"babel.config.js",
|
||||
"tsconfig.json",
|
||||
|
|
|
@ -255,7 +255,9 @@ test.describe( `${ blockData.name } Block `, () => {
|
|||
const resetNotice = editor.page
|
||||
.getByLabel( 'Dismiss this notice' )
|
||||
.getByText( `"Single Product" reset.` );
|
||||
const searchResults = editor.page.getByLabel( 'Actions' );
|
||||
const searchResults = editor.page.getByLabel( 'Actions', {
|
||||
exact: true,
|
||||
} );
|
||||
await expect.poll( async () => await searchResults.count() ).toBe( 1 );
|
||||
await searchResults.first().click();
|
||||
await editor.page.getByRole( 'menuitem', { name: 'Reset' } ).click();
|
||||
|
|
|
@ -62,7 +62,9 @@ for ( const template of templates ) {
|
|||
attributes: { content: userText },
|
||||
} );
|
||||
|
||||
await page.getByRole( 'button', { name: 'Save' } ).click();
|
||||
await page
|
||||
.getByRole( 'button', { name: 'Save', exact: true } )
|
||||
.click();
|
||||
|
||||
await page
|
||||
.getByRole( 'button', { name: 'Dismiss this notice' } )
|
||||
|
|
|
@ -55,7 +55,6 @@ test.describe( 'Single Product Template', () => {
|
|||
} );
|
||||
await editor.revertTemplateCustomizations( {
|
||||
templateName: testData.templateName,
|
||||
templateType: testData.templateType,
|
||||
} );
|
||||
await page.goto( testData.permalink );
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ test.describe( 'Template customization', () => {
|
|||
} );
|
||||
await editor.revertTemplateCustomizations( {
|
||||
templateName: testData.templateName,
|
||||
templateType: testData.templateType,
|
||||
} );
|
||||
await testData.visitPage( { frontendUtils, page } );
|
||||
await expect( page.getByText( userText ) ).toBeHidden();
|
||||
|
@ -101,7 +100,6 @@ test.describe( 'Template customization', () => {
|
|||
await editor.revertTemplateCustomizations( {
|
||||
templateName:
|
||||
testData.fallbackTemplate?.templateName || '',
|
||||
templateType: 'wp_template',
|
||||
} );
|
||||
await testData.visitPage( { frontendUtils, page } );
|
||||
await expect(
|
||||
|
@ -184,7 +182,6 @@ test.describe( 'Template customization', () => {
|
|||
|
||||
await editor.revertTemplateCustomizations( {
|
||||
templateName: testData.templateName,
|
||||
templateType: testData.templateType,
|
||||
} );
|
||||
|
||||
await testData.visitPage( { frontendUtils, page } );
|
||||
|
|
|
@ -69,7 +69,6 @@ test.describe( 'Template customization', () => {
|
|||
} );
|
||||
await editor.revertTemplateCustomizations( {
|
||||
templateName: testData.templateName,
|
||||
templateType: testData.templateType,
|
||||
} );
|
||||
await testData.visitPage( { frontendUtils, page } );
|
||||
|
||||
|
|
|
@ -95,20 +95,14 @@ export class Editor extends CoreEditor {
|
|||
|
||||
async revertTemplateCustomizations( {
|
||||
templateName,
|
||||
templateType,
|
||||
}: {
|
||||
templateName: string;
|
||||
templateType: 'wp_template' | 'wp_template_part';
|
||||
} ) {
|
||||
await this.page.getByPlaceholder( 'Search' ).fill( templateName );
|
||||
|
||||
const resetNotice = this.page
|
||||
.getByLabel( 'Dismiss this notice' )
|
||||
.getByText(
|
||||
templateType === 'wp_template'
|
||||
? `"${ templateName }" reset.`
|
||||
: `"${ templateName }" deleted.`
|
||||
);
|
||||
.getByText( `"${ templateName }" reset.` );
|
||||
const savedButton = this.page.getByRole( 'button', {
|
||||
name: 'Saved',
|
||||
} );
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
Comment: This is a monorepo-facing change that updates E2E tests in our CI.
|
||||
|
Loading…
Reference in New Issue