diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48ab831..2a76a36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@v1 with: - otp-version: '25.1' # Define the OTP version [required] - elixir-version: '1.14.0' # Define the elixir version [required] + otp-version: '26.2.1' + elixir-version: '1.16.3-otp-26' - name: Install testbed dependencies run: mix deps.get working-directory: live_elements_testbed diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..4060ae0 --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +elixir 1.16.3-otp-26 +erlang 26.2.1 diff --git a/test/live_elements_testbed_web/features/simple_guy_test.exs b/test/live_elements_testbed_web/features/simple_guy_test.exs index 4f7e56e..74e671b 100644 --- a/test/live_elements_testbed_web/features/simple_guy_test.exs +++ b/test/live_elements_testbed_web/features/simple_guy_test.exs @@ -5,9 +5,13 @@ defmodule LiveElementsTestbedWeb.Features.SimpleGuyTest do import Wallaby.Query feature "simple guy", %{session: session} do - session + session = session |> visit("/simple_guy") |> assert_has(css("simple-guy")) + + :timer.sleep(100) + + session |> find(css("simple-guy")) |> shadow_root() |> assert_has(css("div", text: "My name is Bob and I am 11 years old")) diff --git a/test/live_elements_testbed_web/features/todo_list_test.exs b/test/live_elements_testbed_web/features/todo_list_test.exs index 7a7e4b6..5756565 100644 --- a/test/live_elements_testbed_web/features/todo_list_test.exs +++ b/test/live_elements_testbed_web/features/todo_list_test.exs @@ -14,6 +14,8 @@ defmodule LiveElementsTestbedWeb.Features.TodoListTest do |> fill_in(css("input[name='todo']"), with: "Do a thing") |> click(css("button")) + :timer.sleep(100) + session |> find(css("todo-list")) |> shadow_root()