From 79dc646337b574e1207cb170562d3308445b0378 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 23 May 2022 11:39:40 +0100 Subject: [PATCH] data coordinator steps --- .../step_definitions/data_coordinator_steps.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 features/step_definitions/data_coordinator_steps.rb diff --git a/features/step_definitions/data_coordinator_steps.rb b/features/step_definitions/data_coordinator_steps.rb new file mode 100644 index 000000000..4bc10c360 --- /dev/null +++ b/features/step_definitions/data_coordinator_steps.rb @@ -0,0 +1,14 @@ +Given('there are multiple users in the same organization') do + @users = create_list :user, 5, organisation: @user.organisation +end + +Given('I visit the users page') do + click_link("Users") +end + +Then('I see information about those users') do + @users.each do |user| + expect(page.body).to have_content user.name + expect(page.body).to have_content user.email + end +end