Fix tests
This commit is contained in:
parent
e204a9a121
commit
b8bb7ae857
5 changed files with 12 additions and 6 deletions
|
|
@ -125,7 +125,7 @@ h3 {
|
|||
border-bottom: solid rgb(53, 53, 53) 2px;
|
||||
}
|
||||
|
||||
#aspects_list {
|
||||
.no_border {
|
||||
padding: 0px;
|
||||
border-bottom: 0px;
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
- if yield(:header_action).present?
|
||||
= yield(:header_action)
|
||||
- else
|
||||
= link_to(image_tag('icons/compose_mobile.png'), new_status_message_path, class: "badge")
|
||||
= link_to(image_tag('icons/compose_mobile.png'), new_status_message_path, class: "badge", id: "compose_badge")
|
||||
-# Menu
|
||||
= link_to(image_tag('icons/menu.png'), "#", id: "menu_badge", class: "badge")
|
||||
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
= link_to t("streams.mentions.title"), mentioned_stream_path
|
||||
%li
|
||||
= t('streams.aspects.title')
|
||||
%li#aspects_list
|
||||
%li.no_border
|
||||
%ul
|
||||
- for aspect in current_user.aspects
|
||||
%li
|
||||
|
|
|
|||
|
|
@ -11,12 +11,14 @@ Feature: Viewing my activity on the steam mobile page
|
|||
And I toggle the mobile view
|
||||
|
||||
Scenario: Show my activity empty
|
||||
When I click on selector "img.my_activity"
|
||||
When I open the drawer
|
||||
And I follow "My Activity"
|
||||
Then I should see "My Activity"
|
||||
And I should not see "Hello! i am #newhere"
|
||||
|
||||
Scenario: Show post on my activity
|
||||
When I click on selector "a.image_link.like_action.inactive"
|
||||
And I click on selector "img.my_activity"
|
||||
And I open the drawer
|
||||
And I follow "My Activity"
|
||||
Then I should see "My Activity"
|
||||
And I should see "Hello! i am #newhere" within ".ltr"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Feature: viewing photos on the mobile main page
|
|||
|
||||
When I sign in as "bob@bob.bob"
|
||||
And I toggle the mobile view
|
||||
And I click on selector "img.compose_icon"
|
||||
And I click on selector "#compose_badge"
|
||||
|
||||
Scenario: view full size image
|
||||
Given I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload-publisher"
|
||||
|
|
|
|||
|
|
@ -25,3 +25,7 @@ end
|
|||
When /^I visit the mobile search page$/ do
|
||||
visit('/people.mobile')
|
||||
end
|
||||
|
||||
When /^I open the drawer$/ do
|
||||
find('#menu_badge').click
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue