This commit is contained in:
@ -49,6 +49,8 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
assert index_live |> element("a", "new context") |> render_click() =~ "new context"
|
||||
assert_patch(index_live, ~p"/contexts/new")
|
||||
|
||||
{:ok, index_live, _html} = live(conn, ~p"/contexts/new")
|
||||
|
||||
assert index_live
|
||||
|> form("#context-form")
|
||||
|> render_change(context: @invalid_attrs) =~ "can't be blank"
|
||||
@ -71,6 +73,8 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
|
||||
assert_patch(index_live, ~p"/contexts/#{context}/edit")
|
||||
|
||||
{:ok, index_live, _html} = live(conn, ~p"/contexts/#{context}/edit")
|
||||
|
||||
assert index_live
|
||||
|> form("#context-form")
|
||||
|> render_change(context: @invalid_attrs) =~ "can't be blank"
|
||||
@ -108,6 +112,8 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
assert show_live |> element("a", "edit") |> render_click() =~ "edit"
|
||||
assert_patch(show_live, ~p"/context/#{context}/edit")
|
||||
|
||||
{:ok, show_live, _html} = live(conn, ~p"/context/#{context}/edit")
|
||||
|
||||
html =
|
||||
show_live
|
||||
|> form("#context-form")
|
||||
|
@ -49,6 +49,8 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
assert index_live |> element("a", "new note") |> render_click() =~ "new note"
|
||||
assert_patch(index_live, ~p"/notes/new")
|
||||
|
||||
{:ok, index_live, _html} = live(conn, ~p"/notes/new")
|
||||
|
||||
html =
|
||||
index_live
|
||||
|> form("#note-form")
|
||||
@ -75,6 +77,8 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
|
||||
assert_patch(index_live, ~p"/notes/#{note}/edit")
|
||||
|
||||
{:ok, index_live, _html} = live(conn, ~p"/notes/#{note}/edit")
|
||||
|
||||
assert index_live
|
||||
|> form("#note-form")
|
||||
|> render_change(note: @invalid_attrs) =~ "can't be blank"
|
||||
@ -112,6 +116,8 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
assert show_live |> element("a", "edit") |> render_click() =~ "edit"
|
||||
assert_patch(show_live, ~p"/note/#{note}/edit")
|
||||
|
||||
{:ok, show_live, _html} = live(conn, ~p"/note/#{note}/edit")
|
||||
|
||||
assert show_live
|
||||
|> form("#note-form")
|
||||
|> render_change(note: @invalid_attrs) =~ "can't be blank"
|
||||
|
@ -62,6 +62,8 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
assert index_live |> element("a", "new pipeline") |> render_click() =~ "new pipeline"
|
||||
assert_patch(index_live, ~p"/pipelines/new")
|
||||
|
||||
{:ok, index_live, _html} = live(conn, ~p"/pipelines/new")
|
||||
|
||||
assert index_live
|
||||
|> form("#pipeline-form")
|
||||
|> render_change(pipeline: @invalid_attrs) =~ "can't be blank"
|
||||
@ -84,6 +86,8 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
|
||||
assert_patch(index_live, ~p"/pipelines/#{pipeline}/edit")
|
||||
|
||||
{:ok, index_live, _html} = live(conn, ~p"/pipelines/#{pipeline}/edit")
|
||||
|
||||
assert index_live
|
||||
|> form("#pipeline-form")
|
||||
|> render_change(pipeline: @invalid_attrs) =~ "can't be blank"
|
||||
@ -124,6 +128,8 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
assert show_live |> element("a", "edit") |> render_click() =~ "edit"
|
||||
assert_patch(show_live, ~p"/pipeline/#{pipeline}/edit")
|
||||
|
||||
{:ok, show_live, _html} = live(conn, ~p"/pipeline/#{pipeline}/edit")
|
||||
|
||||
html =
|
||||
show_live
|
||||
|> form("#pipeline-form")
|
||||
@ -159,6 +165,8 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
show_live |> element("a", "add step") |> render_click()
|
||||
assert_patch(show_live, ~p"/pipeline/#{pipeline}/add_step")
|
||||
|
||||
{:ok, show_live, _html} = live(conn, ~p"/pipeline/#{pipeline}/add_step")
|
||||
|
||||
{:ok, _show_live, html} =
|
||||
show_live
|
||||
|> form("#step-form")
|
||||
@ -196,6 +204,8 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
|
||||
assert_patch(show_live, ~p"/pipeline/#{pipeline}/#{step.id}")
|
||||
|
||||
{:ok, show_live, _html} = live(conn, ~p"/pipeline/#{pipeline}/#{step.id}")
|
||||
|
||||
assert show_live
|
||||
|> form("#step-form")
|
||||
|> render_change(step: @step_invalid_attrs) =~ "can't be blank"
|
||||
|
Reference in New Issue
Block a user