Skip to content

Commit 789affb

Browse files
chore(deps): update leptos monorepo to v0.8.14 (#232)
* chore(deps): update leptos monorepo to v0.8.14 * fix: wrap Leptos text in quotes * fix: set `maxDiffPixelRatio` to 0.01 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniëlle Huisman <danielle@huisman.me>
1 parent 7087a27 commit 789affb

4 files changed

Lines changed: 56 additions & 35 deletions

File tree

Cargo.lock

Lines changed: 48 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/leptos/tests/playwright.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub fn playwright() {
124124

125125
let config_content = fs::read_to_string(repository_playwright_config_path.clone())
126126
.expect("Reading Playwright config file failed.")
127-
.replace("retries: 3,", "retries: 0,\n timeout: 10 * 1000,")
127+
.replace("retries: 3,", "retries: 0,\n timeout: 10 * 1000,\nexpect: {toMatchSnapshot: {maxDiffPixelRatio: 0.01}},")
128128
.replace(
129129
"command: 'pnpm run dev',",
130130
&format!(

packages/leptos/tests/visual/src/spec/inline.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,20 @@ pub fn Inline() -> impl IntoView {
165165
<p>The floating element should choose the most appropriate rect.</p>
166166
<div class="container">
167167
<p class="prose" style:padding="10px">
168-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.{' '}
168+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
169169
<strong
170170
node_ref=reference_ref
171171
style:color="royalblue"
172172
on:mouseenter=handle_mouse_enter
173173
on:mouseleave=handle_mouse_leave
174174
>
175175
{text}
176-
</strong>. Ut eu magna eu augue efficitur bibendum id commodo tellus. Nullam
176+
</strong>". Ut eu magna eu augue efficitur bibendum id commodo tellus. Nullam
177177
gravida, mi nec sodales tincidunt, lorem orci aliquam ex, id commodo
178178
erat libero ut risus. Nam molestie non lectus sit amet tempus. Vivamus
179-
accumsan{' '}
180-
<strong style:color={"red"}>nunc quis faucibus egestas</strong>.
181-
Duis cursus nisi massa, non dictum turpis interdum at.
179+
accumsan "
180+
<strong style:color={"red"}>"nunc quis faucibus egestas"</strong>". "
181+
"Duis cursus nisi massa, non dictum turpis interdum at."
182182
</p>
183183

184184
<Show when=move || open.get()>

packages/leptos/tests/visual/src/spec/relative.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ pub fn Relative() -> impl IntoView {
8080
view! {
8181
<h1>Relative</h1>
8282
<p>
83-
The floating element should be positioned correctly on the bottom when a
84-
certain parent node has <code>position: relative</code> applied.
83+
"The floating element should be positioned correctly on the bottom when a
84+
certain parent node has "<code>"position: relative"</code>" applied."
8585
</p>
8686
<div
8787
class="container"

0 commit comments

Comments
 (0)