From ceff7f4c69e2a31589263ae056f69e82cc031d3f Mon Sep 17 00:00:00 2001 From: JustinyAhin Date: Tue, 12 Oct 2021 09:05:08 +0200 Subject: [PATCH 1/2] Update the selector for categories input --- packages/e2e-tests/specs/editor/various/taxonomies.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/e2e-tests/specs/editor/various/taxonomies.test.js b/packages/e2e-tests/specs/editor/various/taxonomies.test.js index 2b90edf067c605..aa4ebcbe4d7f46 100644 --- a/packages/e2e-tests/specs/editor/various/taxonomies.test.js +++ b/packages/e2e-tests/specs/editor/various/taxonomies.test.js @@ -87,7 +87,7 @@ describe( 'Taxonomies', () => { // Type the category name in the field. await page.type( - '.editor-post-taxonomies__hierarchical-terms-input input[type=text]', + 'input[type="text"].editor-post-taxonomies__hierarchical-terms-input', 'z rand category 1' ); From 50155ea89d746ab9753baa65c0dc56553fc62200 Mon Sep 17 00:00:00 2001 From: JustinyAhin Date: Thu, 14 Oct 2021 08:51:05 +0200 Subject: [PATCH 2/2] Update taxonomies.test.js --- packages/e2e-tests/specs/editor/various/taxonomies.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/e2e-tests/specs/editor/various/taxonomies.test.js b/packages/e2e-tests/specs/editor/various/taxonomies.test.js index aa4ebcbe4d7f46..f117bf0ea0c9a0 100644 --- a/packages/e2e-tests/specs/editor/various/taxonomies.test.js +++ b/packages/e2e-tests/specs/editor/various/taxonomies.test.js @@ -71,6 +71,10 @@ describe( 'Taxonomies', () => { await openSidebarPanelWithTitle( 'Categories' ); + await page.waitForSelector( + '.editor-post-taxonomies__hierarchical-terms-list' + ); + // If the user has no permission to add a new category finish the test. if ( ! ( await canCreatTermInTaxonomy( 'categories' ) ) ) { return; @@ -87,7 +91,7 @@ describe( 'Taxonomies', () => { // Type the category name in the field. await page.type( - 'input[type="text"].editor-post-taxonomies__hierarchical-terms-input', + '.editor-post-taxonomies__hierarchical-terms-input input[type=text]', 'z rand category 1' );