From 16bf5bb2af7bfec0b280a140a7bc7c02374bdab3 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 12 Apr 2023 19:04:41 +0200 Subject: [PATCH] fix: missing wait for element in blockquote-extra-tag-markdown-extension.spec.tsx Signed-off-by: Tilman Vatteroth --- ...extra-tag-markdown-extension.spec.tsx.snap | 65 +++++++++++++++++++ ...uote-extra-tag-markdown-extension.spec.tsx | 20 +++--- 2 files changed, 76 insertions(+), 9 deletions(-) diff --git a/frontend/src/extensions/extra-integrations/blockquote/__snapshots__/blockquote-extra-tag-markdown-extension.spec.tsx.snap b/frontend/src/extensions/extra-integrations/blockquote/__snapshots__/blockquote-extra-tag-markdown-extension.spec.tsx.snap index 6e3361fb1..417908430 100644 --- a/frontend/src/extensions/extra-integrations/blockquote/__snapshots__/blockquote-extra-tag-markdown-extension.spec.tsx.snap +++ b/frontend/src/extensions/extra-integrations/blockquote/__snapshots__/blockquote-extra-tag-markdown-extension.spec.tsx.snap @@ -2,6 +2,11 @@ exports[`blockquote extra tag renders the tag "> [color=#f00] text" correctly 1`] = `
+

+ blockquote +

+ +
@@ -20,6 +25,11 @@ exports[`blockquote extra tag renders the tag "> [color=#f00] text" correctly 1` exports[`blockquote extra tag renders the tag "[=value]" correctly 1`] = `
+

+ blockquote +

+ +

[=value]

@@ -30,6 +40,11 @@ exports[`blockquote extra tag renders the tag "[=value]" correctly 1`] = ` exports[`blockquote extra tag renders the tag "[color=#abcdef]" correctly 1`] = `
+

+ blockquote +

+ +

+

+ blockquote +

+ +

+

+ blockquote +

+ +

[color=]

@@ -70,6 +95,11 @@ exports[`blockquote extra tag renders the tag "[color=]" correctly 1`] = ` exports[`blockquote extra tag renders the tag "[color=notarealcolor]" correctly 1`] = `
+

+ blockquote +

+ +

+

+ blockquote +

+ +

+

+ blockquote +

+ +

[key=]

@@ -109,6 +149,11 @@ exports[`blockquote extra tag renders the tag "[key=]" correctly 1`] = ` exports[`blockquote extra tag renders the tag "[key]" correctly 1`] = `
+

+ blockquote +

+ +

[key]

@@ -119,6 +164,11 @@ exports[`blockquote extra tag renders the tag "[key]" correctly 1`] = ` exports[`blockquote extra tag renders the tag "[name=]" correctly 1`] = `
+

+ blockquote +

+ +

[name=]

@@ -129,6 +179,11 @@ exports[`blockquote extra tag renders the tag "[name=]" correctly 1`] = ` exports[`blockquote extra tag renders the tag "[name=giowehg]" correctly 1`] = `
+

+ blockquote +

+ +

+

+ blockquote +

+ +

[time=]

@@ -153,6 +213,11 @@ exports[`blockquote extra tag renders the tag "[time=]" correctly 1`] = ` exports[`blockquote extra tag renders the tag "[time=tomorrow]" correctly 1`] = `
+

+ blockquote +

+ +

{ - ;[ + it.each([ '[color=white]', '[color=#dfe]', '[color=notarealcolor]', @@ -23,12 +23,14 @@ describe('blockquote extra tag', () => { '[key=]', '[=value]', '> [color=#f00] text' - ].forEach((content) => { - it(`renders the tag "${content}" correctly`, () => { - const view = render( - - ) - expect(view.container).toMatchSnapshot() - }) + ])(`renders the tag "%s" correctly`, async (content) => { + const view = render( + + ) + await screen.findByText('blockquote') + expect(view.container).toMatchSnapshot() }) })