Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/portfolixir_web/live/dashboard_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ defmodule PortfolixirWeb.DashboardLive do
<% else %>
<div class="app-shell-table-wrapper">
<table id="dashboard-import-runs-table">
<caption id="dashboard-import-runs-table-caption" class="app-shell-visually-hidden">
<%= gettext("Recent import runs with source, status, start time, and finish time.") %>
</caption>
<thead>
<tr>
<th scope="col"><%= gettext("Source") %></th>
Expand Down
7 changes: 7 additions & 0 deletions test/portfolixir_web/live/dashboard_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ defmodule PortfolixirWeb.DashboardLiveTest do
{:ok, view, _html} = live(conn, "/")

assert has_element?(view, "#dashboard-recent-import-runs")

assert has_element?(
view,
"#dashboard-import-runs-table-caption.app-shell-visually-hidden",
"Recent import runs with source, status, start time, and finish time."
)

assert has_element?(view, "#dashboard-import-runs-link[href=\"/imports\"]")
assert has_element?(view, "#dashboard-import-run-row-#{run.id}")
assert has_element?(view, "#dashboard-import-run-row-#{run.id}", source.name)
Expand Down
Loading