We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da1907 commit dd109f1Copy full SHA for dd109f1
test/petal/carousel_test.exs
@@ -260,12 +260,11 @@ defmodule PetalComponents.CarouselTest do
260
refute html =~ "Slide 1"
261
refute html =~ "Slide 2"
262
263
- # The second slide should only have an image and no text content
264
- slide2_content = html
265
- |> String.split("pc-carousel__slide")
266
- |> Enum.at(2)
+ # Check that the second image is in the HTML
+ assert html =~ "https://example.com/image2.jpg"
267
268
- assert slide2_content =~ "https://example.com/image2.jpg"
269
- refute slide2_content =~ "pc-carousel__title"
+ # Make sure no default titles are created
+ refute html =~ "Slide 1"
+ refute html =~ "Slide 2"
270
end
271
0 commit comments