diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-03 18:47:45 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-03 18:47:45 +0300 |
commit | f31cf06d05a87a956ab15614757c7daff5e7359c (patch) | |
tree | 4da06d10f9ac839fcc0113ac131875a72810a058 | |
parent | d88b9ac739b0cddda09afde0226e0b574440b906 (diff) | |
parent | d6f07ce41dd6b078840abadc31dc26d81bb33bcf (diff) |
Merge branch 'fix-issue_sidebar_spec-failure-and-remove-sleep' into 'master'
Fixed issue_sidebar_spec.rb click as true click cannot hit the right element and removed sleep
See merge request !11064
-rw-r--r-- | spec/features/issues/issue_sidebar_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/issues/issue_sidebar_spec.rb b/spec/features/issues/issue_sidebar_spec.rb index 3bdd12b4853..82b80a69bed 100644 --- a/spec/features/issues/issue_sidebar_spec.rb +++ b/spec/features/issues/issue_sidebar_spec.rb @@ -152,9 +152,7 @@ feature 'Issue Sidebar', feature: true do end def open_issue_sidebar - page.within('aside.right-sidebar.right-sidebar-collapsed') do - find('.js-sidebar-toggle').click - sleep 1 - end + find('aside.right-sidebar.right-sidebar-collapsed .js-sidebar-toggle').click + find('aside.right-sidebar.right-sidebar-expanded') end end |