From 155f2ed548d19d239c5dc156db98fe4a5e588123 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 20 Feb 2020 12:34:08 +1300 Subject: [PATCH] Fix menu link label in spec --- spec/features/conversations/index_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/conversations/index_spec.rb b/spec/features/conversations/index_spec.rb index 9df3b584e..519ef144d 100644 --- a/spec/features/conversations/index_spec.rb +++ b/spec/features/conversations/index_spec.rb @@ -14,7 +14,7 @@ describe "Conversations", :js do describe "Read conversations list" do before do visit root_path - click_link 'Your Stuff' + click_link recipient.login_name click_link 'Inbox' end it { expect(page).to have_content 'something i want to say' } @@ -48,7 +48,7 @@ describe "Conversations", :js do sender.send_message(recipient, 'this is another message', 'follow up message') visit root_path - click_link 'Your Stuff' + click_link recipient.login_name click_link 'Inbox' all('input[type=checkbox]').each(&:click) @@ -63,7 +63,7 @@ describe "Conversations", :js do sender.send_message(recipient, 'this is another message', 'follow up message') visit root_path - click_link 'Your Stuff' + click_link recipient.login_name click_link 'Inbox' expect(page).to have_selector('.sent')