From 6aa99448790033f46808a9d8357f712d79d44b97 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 31 Jan 2020 13:51:49 -0500 Subject: [PATCH] Components: Apply width-based modifier classes to Placeholder only when width is known (#19825) * Components: Apply `is-small` modifier class to Placeholder only when width known * E2E Tests: Wait for placeholder error display in embed tests * Testing: Update snapshots for Placeholder class assignment --- .../embed/test/__snapshots__/index.js.snap | 2 +- packages/components/src/placeholder/index.js | 20 ++++++++----- .../components/src/placeholder/test/index.js | 29 +++++++++++++++++-- .../specs/editor/various/embedding.test.js | 7 +++++ storybook/test/__snapshots__/index.js.snap | 2 +- 5 files changed, 49 insertions(+), 11 deletions(-) diff --git a/packages/block-library/src/embed/test/__snapshots__/index.js.snap b/packages/block-library/src/embed/test/__snapshots__/index.js.snap index eff8cabaaad89..d5267ced08a43 100644 --- a/packages/block-library/src/embed/test/__snapshots__/index.js.snap +++ b/packages/block-library/src/embed/test/__snapshots__/index.js.snap @@ -2,7 +2,7 @@ exports[`core/embed block edit matches snapshot 1`] = `