From b759b4a62ed184236b9d56c3ca5cf1af534bbda0 Mon Sep 17 00:00:00 2001 From: Sanad Liaquat Date: Mon, 19 Aug 2019 20:03:13 +0500 Subject: Fix add project member spec --- .../features/browser_ui/1_manage/project/add_project_member_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb index f51c16f472c..d859ee8e96a 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb @@ -19,7 +19,7 @@ module QA page.add_member(user.username) end - expect(page).to have_content(/#{user.name} (. )?@#{user.username} Given access/) + expect(page).to have_content(/@#{user.username}\nGiven access/) end end end -- cgit v1.2.1 From 179955e8ce8c4495a5484384d37df64184971634 Mon Sep 17 00:00:00 2001 From: Sanad Liaquat Date: Tue, 20 Aug 2019 07:30:27 +0500 Subject: Match space or newline after username --- .../features/browser_ui/1_manage/project/add_project_member_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb index d859ee8e96a..1c1f552e224 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb @@ -19,7 +19,7 @@ module QA page.add_member(user.username) end - expect(page).to have_content(/@#{user.username}\nGiven access/) + expect(page).to have_content(/@#{user.username}(\n| )?Given access/) end end end -- cgit v1.2.1