Commit 7facedfb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix profile test to click on header user profile link

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent bca47688
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
.nav-sidebar { .nav-sidebar {
position: absolute; position: absolute;
top: 50px; top: 50px;
bottom: 0px; bottom: 0;
width: $sidebar_width; width: $sidebar_width;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
......
...@@ -155,8 +155,11 @@ class Spinach::Features::Profile < Spinach::FeatureSteps ...@@ -155,8 +155,11 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end end
step 'I click on my profile picture' do step 'I click on my profile picture' do
find(:css, '.side-nav-toggle').click find(:css, '.header-user-dropdown-toggle').click
find(:css, '.sidebar-user').click
page.within ".header-user" do
click_link "Profile"
end
end end
step 'I should see my user page' do step 'I should see my user page' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment