test: move slow and less critical tests to nightly suite
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2026-01-28 14:34:05 +01:00
parent eb2b2436be
commit 050ca4a13c
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
9 changed files with 243 additions and 55 deletions

View file

@ -3,6 +3,7 @@ defmodule MvWeb.UserLive.IndexTest do
import Phoenix.LiveViewTest
describe "basic functionality" do
@tag :slow
test "displays users in a table", %{conn: conn} do
# Create test users
_user1 = create_test_user(%{email: "alice@example.com", oidc_id: "alice123"})
@ -26,6 +27,7 @@ defmodule MvWeb.UserLive.IndexTest do
%{users: [user_a, user_z, user_m]}
end
@tag :slow
test "initially sorts by email ascending", %{conn: conn} do
conn = conn_with_oidc_user(conn)
{:ok, _view, html} = live(conn, "/users")
@ -43,6 +45,7 @@ defmodule MvWeb.UserLive.IndexTest do
assert mike_pos < zulu_pos, "mike@example.com should appear before zulu@example.com"
end
@tag :slow
test "can sort email descending by clicking sort button", %{conn: conn} do
conn = conn_with_oidc_user(conn)
{:ok, view, _html} = live(conn, "/users")
@ -74,6 +77,7 @@ defmodule MvWeb.UserLive.IndexTest do
%{users: [user1, user2]}
end
@tag :slow
test "select all automatically checks when all individual users are selected", %{
conn: conn,
users: [user1, user2]
@ -184,6 +188,7 @@ defmodule MvWeb.UserLive.IndexTest do
end
describe "member linking display" do
@tag :slow
test "displays linked member name in user list", %{conn: conn} do
system_actor = Mv.Helpers.SystemActor.get_system_actor()