Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eliknebel committed Jun 21, 2024
1 parent 7050ec0 commit cea0e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/oli_web/live/delivery/student/learn_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ defmodule OliWeb.Delivery.Student.ContentLiveTest do
{:ok, view, _html} = live(conn, redirect_path)

assert view |> element(~s{#header span}) |> render() =~ "(Preview Mode)"
assert view |> element(~s{h3)}) |> render() =~ "My Notes"
assert view |> has_element?(~s{h1}, "Notes")
end

test "redirects and ensures navigation to the preview Practice page", %{
Expand All @@ -2804,7 +2804,7 @@ defmodule OliWeb.Delivery.Student.ContentLiveTest do
{:ok, view, _html} = live(conn, redirect_path)

assert view |> element(~s{#header span}) |> render() =~ "(Preview Mode)"
assert view |> element(~s{h1)}) |> render() =~ "Your Practice Pages"
assert view |> element(~s{h1}) |> render() =~ "Your Practice Pages"
end
end

Expand Down

0 comments on commit cea0e90

Please sign in to comment.