22 lines
543 B
Ruby
22 lines
543 B
Ruby
When /^I toggle the mobile view$/ do
|
|
visit("/mobile/toggle")
|
|
end
|
|
|
|
Given /^I visit the mobile publisher page$/ do
|
|
visit("/status_messages/new.mobile")
|
|
end
|
|
|
|
When /^I visit the mobile search page$/ do
|
|
visit("/people.mobile")
|
|
end
|
|
|
|
When /^I open the drawer$/ do
|
|
find("#menu-badge").click
|
|
expect(find("#app")["class"]).to include "draw"
|
|
end
|
|
|
|
Then /^the aspect dropdown within "([^"]*)" should be labeled "([^"]*)"/ do |selector, label|
|
|
within(selector) do
|
|
current_scope.should have_css("option.list_cover", :text => label)
|
|
end
|
|
end
|