From 6bad94a9076ebb5eb9edf1d2f15c6e3efadcd489 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 27 Jul 2020 14:16:44 +0200 Subject: [PATCH 1/2] Change selector to match updated classes See https://github.com/WordPress/gutenberg/pull/22390 See https://github.com/WordPress/gutenberg/commit/e318033acd2599751b4a91a5ffd46b6a2fb59997 --- test/e2e/lib/gutenberg/gutenberg-editor-component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/lib/gutenberg/gutenberg-editor-component.js b/test/e2e/lib/gutenberg/gutenberg-editor-component.js index 11af799e69263..680f8abea030c 100644 --- a/test/e2e/lib/gutenberg/gutenberg-editor-component.js +++ b/test/e2e/lib/gutenberg/gutenberg-editor-component.js @@ -415,11 +415,11 @@ export default class GutenbergEditorComponent extends AsyncBaseContainer { await driverHelper.waitTillNotPresent( this.driver, this.publishingSpinnerSelector ); await driverHelper.waitTillPresentAndDisplayed( this.driver, - By.css( '.editor-post-publish-panel__header-published' ) + By.css( '.post-publish-panel__postpublish-header' ) ); return await driverHelper.verifyTextPresent( this.driver, - By.css( '.editor-post-publish-panel__header-published' ), + By.css( '.post-publish-panel__postpublish-header' ), 'Scheduled' ); } From fd66878fd9587c804095bb64b5f66572eb04b70c Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 27 Jul 2020 18:57:37 +0200 Subject: [PATCH 2/2] Use nth-of-type (element has moved) --- test/e2e/lib/gutenberg/blocks/contact-form-block-component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/lib/gutenberg/blocks/contact-form-block-component.js b/test/e2e/lib/gutenberg/blocks/contact-form-block-component.js index e9c44be59fd12..abf8cc9a4431f 100644 --- a/test/e2e/lib/gutenberg/blocks/contact-form-block-component.js +++ b/test/e2e/lib/gutenberg/blocks/contact-form-block-component.js @@ -25,7 +25,7 @@ export class ContactFormBlockComponent extends GutenbergBlockComponent { async insertEmail( email ) { const emailSelector = By.css( - '.jetpack-contact-form__popover .components-base-control:nth-child(1) .components-text-control__input' + '.jetpack-contact-form__popover .components-base-control:nth-of-type(1) .components-text-control__input' ); await driverHelper.waitTillPresentAndDisplayed( this.driver, emailSelector ); @@ -35,7 +35,7 @@ export class ContactFormBlockComponent extends GutenbergBlockComponent { async insertSubject( subject ) { const subjectSelector = By.css( - '.jetpack-contact-form__popover .components-base-control:nth-child(2) .components-text-control__input' + '.jetpack-contact-form__popover .components-base-control:nth-of-type(2) .components-text-control__input' ); await driverHelper.waitTillPresentAndDisplayed( this.driver, subjectSelector );