Packages

Native desktop GUI framework for Elixir, powered by Iced

Current section

Files

Jump to
plushie examples tests clock_test.exs
Raw

examples/tests/clock_test.exs

defmodule Examples.ClockTest do
@moduledoc "Integration tests for the Clock example using the test DSL."
use Plushie.Test.Case, app: Clock
test "model contains a time string on init" do
assert is_binary(model().time)
end
test "displays the time in the clock widget" do
element = find!("#clock_display")
assert text(element) != nil
end
test "subtitle text is present" do
assert_text("#subtitle", "Updates every second")
end
end