From d4c3e207f54c609bb515618474a421f5370ea1dd Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 10 Sep 2024 16:10:23 +0200 Subject: [PATCH] Fix one more test. --- test/e2e/specs/site-editor/styles.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/specs/site-editor/styles.spec.js b/test/e2e/specs/site-editor/styles.spec.js index 1cb54d79a4479..63a051bf6b92d 100644 --- a/test/e2e/specs/site-editor/styles.spec.js +++ b/test/e2e/specs/site-editor/styles.spec.js @@ -41,7 +41,9 @@ test.describe( 'Styles', () => { // Navigate to Styles -> Blocks -> Heading -> Typography await topBar.getByRole( 'button', { name: 'Styles' } ).click(); await page.getByRole( 'button', { name: 'Blocks' } ).click(); - await page.getByRole( 'button', { name: 'Social Icons' } ).click(); + await page + .getByRole( 'button', { name: 'Social Icons', exact: true } ) + .click(); // Find the second padding control and change the padding value await page