Skip to content

Commit

Permalink
experimenting with timing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed May 27, 2024
1 parent 9e1ea15 commit ec7fbe9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elixir 1.16.3-otp-26
erlang 26.2.1
6 changes: 5 additions & 1 deletion test/live_elements_testbed_web/features/simple_guy_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 2 additions & 0 deletions test/live_elements_testbed_web/features/todo_list_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ec7fbe9

Please sign in to comment.