Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/924
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Aug 18, 2024
1 parent 2314039 commit 01acba5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/web/block_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _silenced} = Bonfire.Boundaries.Blocks.block(alice, :silence, current_user: me)
conn = conn(user: alice, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post
html_body = "epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand All @@ -208,7 +208,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _silenced} = Bonfire.Boundaries.Blocks.block(alice, :silence, current_user: me)
conn = conn(user: alice, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post
html_body = "epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand Down Expand Up @@ -241,7 +241,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _silenced} = Bonfire.Boundaries.Blocks.block(alice, :silence, current_user: me)
conn = conn(user: alice, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post as alice and mention me
html_body = "@#{me.character.username} epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand Down Expand Up @@ -270,7 +270,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _silenced} = Bonfire.Boundaries.Blocks.block(alice, :silence, current_user: me)
conn = conn(user: alice, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post as alice and mention me
html_body = "@#{alice.character.username} epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand Down Expand Up @@ -311,7 +311,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _ghosted} = Bonfire.Boundaries.Blocks.block(alice, :ghost, current_user: me)
conn = conn(user: me, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post
html_body = "epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand All @@ -337,7 +337,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _ghosted} = Bonfire.Boundaries.Blocks.block(alice, :ghost, current_user: me)
conn = conn(user: me, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post
html_body = "epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand All @@ -351,7 +351,7 @@ defmodule Bonfire.Boundaries.BlockTest do

# login as alice
conn = conn()
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# check that the post is not there
assert render(view) =~ html_body
end
Expand All @@ -363,7 +363,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _ghosted} = Bonfire.Boundaries.Blocks.block(alice, :ghost, current_user: me)
conn = conn(user: me, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post and mention alice
html_body = "@#{alice.character.username} epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand Down Expand Up @@ -392,7 +392,7 @@ defmodule Bonfire.Boundaries.BlockTest do
alice = fake_user!(account)
assert {:ok, _ghosted} = Bonfire.Boundaries.Blocks.block(alice, :ghost, current_user: me)
conn = conn(user: me, account: account)
{:ok, view, _html} = live(conn, "/")
{:ok, view, _html} = live(conn, "/feed")
# write a post and DM alice
html_body = "epic html message"
attrs = %{post_content: %{html_body: html_body}}
Expand Down Expand Up @@ -442,7 +442,7 @@ defmodule Bonfire.Boundaries.BlockTest do
# assert {:ok, _ghosted} = Bonfire.Boundaries.Blocks.block(alice.id, :ghost, :instance_wide)
# # login as bob
# conn = conn(user: bob, account: account)
# {:ok, view, _html} = live(conn, "/")
# {:ok, view, _html} = live(conn, "/feed")
# # write a post
# html_body = "epic html message"
# attrs = %{post_content: %{html_body: html_body}}
Expand Down Expand Up @@ -472,7 +472,7 @@ defmodule Bonfire.Boundaries.BlockTest do
# assert {:ok, _ghosted} = Bonfire.Boundaries.Blocks.block(alice.id, :ghost, :instance_wide)
# # login as bob
# conn = conn(user: bob, account: account)
# {:ok, view, _html} = live(conn, "/")
# {:ok, view, _html} = live(conn, "/feed")
# # write a post
# html_body = "epic html message"
# attrs = %{post_content: %{html_body: html_body}}
Expand Down

0 comments on commit 01acba5

Please sign in to comment.