From 6b3db365282bacafbf8d1e9d2d406e36a8fa76a4 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 22 Nov 2024 16:33:37 +0100 Subject: [PATCH] test: Fix admin users feature spec In Alchemy 7.3 the table does not have an id anymore. --- spec/features/admin/users_feature_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/users_feature_spec.rb b/spec/features/admin/users_feature_spec.rb index cf52d82..fc9e7ad 100644 --- a/spec/features/admin/users_feature_spec.rb +++ b/spec/features/admin/users_feature_spec.rb @@ -30,10 +30,14 @@ describe "users list" do let!(:users) { create_list(:alchemy_user, 2) } - it "lists existing users" do + it "lists existing users", :aggregate_failures do visit admin_users_path - expect(page).to have_selector "table#user_list" + within "table.list" do + users.each do |user| + expect(page).to have_text user.email + end + end end it "is searchable" do