From 65c2f43fd31bdd2659d12e8eb5169ad2f32d19ba Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Thu, 11 May 2017 18:41:40 -0500 Subject: [PATCH] =?UTF-8?q?Use=20.trigger(=E2=80=98click=E2=80=99)=20inste?= =?UTF-8?q?ad=20of=20.click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is to improve reliability on mentioned tests --- spec/features/boards/sidebar_spec.rb | 2 +- spec/features/dashboard/milestone_filter_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/boards/sidebar_spec.rb b/spec/features/boards/sidebar_spec.rb index 11ef8e1f61b..1238647d3f3 100644 --- a/spec/features/boards/sidebar_spec.rb +++ b/spec/features/boards/sidebar_spec.rb @@ -158,7 +158,7 @@ describe 'Issue Boards', feature: true, js: true do end page.within(first('.board')) do - find('.card:nth-child(2)').click + find('.card:nth-child(2)').trigger('click') end page.within('.assignee') do diff --git a/spec/features/dashboard/milestone_filter_spec.rb b/spec/features/dashboard/milestone_filter_spec.rb index 628627f70d4..e9ca7fd50e7 100644 --- a/spec/features/dashboard/milestone_filter_spec.rb +++ b/spec/features/dashboard/milestone_filter_spec.rb @@ -43,7 +43,7 @@ describe 'Dashboard > milestone filter', feature: true, js: true do end it 'should not change active Milestone unless clicked' do - find(milestone_select).click + find(milestone_select).trigger('click') expect(find('.dropdown-content')).to have_selector('a.is-active', count: 1)