+
+
+
+
Members
+
+ <% @users.each do |user| %>
+ -
+
+
+
+
standing info
+
role info
+
+
+
+
+
- Last activity
+ - placeholder
+
+
+
- Joined on
+ - <%= user.registered_at.strftime("%d %b, %Y") %>
+
+
+
Orgs info
+
+
+
+ <% end %>
+
+
+
+
+
+
| Member |
@@ -21,6 +61,7 @@
<% end %>
+
<%= paginate @users, theme: "admin", scope: @users, label: "Paginate users" %>
diff --git a/cypress/integration/seededFlows/adminFlows/users/userIndexView.spec.js b/cypress/integration/seededFlows/adminFlows/users/userIndexView.spec.js
index 24925a7dc..726a580c6 100644
--- a/cypress/integration/seededFlows/adminFlows/users/userIndexView.spec.js
+++ b/cypress/integration/seededFlows/adminFlows/users/userIndexView.spec.js
@@ -28,8 +28,8 @@ describe('User index view', () => {
cy.findByRole('button', { name: 'Search' }).click();
- // The table headers consistitute a row, plus one result
- cy.findAllByRole('row').should('have.length', 2);
+ // Coreect search result should appear
+ cy.findByRole('heading', { name: 'Admin McAdmin' }).should('exist');
});
it('Filters for a user', () => {
@@ -41,8 +41,11 @@ describe('User index view', () => {
cy.findByRole('combobox', { name: 'User role' }).select('super_admin');
cy.findByRole('button', { name: 'Filter' }).click();
- // Table header, 'normal' admin and apple auth admin
- cy.findAllByRole('row').should('have.length', 3);
+ // Search results should include these two results
+ cy.findByRole('heading', { name: 'Admin McAdmin' }).should('exist');
+ cy.findByRole('heading', { name: 'Apple Auth Admin User' }).should(
+ 'exist',
+ );
});
it('Prevents both search and filter widgets being visible at the same time', () => {