Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/aspects_steps.rb')
-rw-r--r--features/step_definitions/aspects_steps.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/features/step_definitions/aspects_steps.rb b/features/step_definitions/aspects_steps.rb
index 4a5c9e577..e025200d1 100644
--- a/features/step_definitions/aspects_steps.rb
+++ b/features/step_definitions/aspects_steps.rb
@@ -2,7 +2,11 @@
module AspectCukeHelpers
def click_aspect_dropdown
- find(".aspect-dropdown .dropdown-toggle").trigger "click"
+ find(".aspect-dropdown > .dropdown-toggle").click
+ end
+
+ def click_share_button
+ find("#submit_new_message").trigger "click"
end
def toggle_aspect(a_name)
@@ -112,6 +116,17 @@ When /^I press the aspect dropdown$/ do
click_aspect_dropdown
end
+When /^I press the share button$/ do
+ # There were issues 'clicking' the share button on mobile
+ click_share_button
+end
+
+When /^I visit the stream with aspect "([^"]*)"$/ do |aspect_name|
+ # In mobile view aspects are single anchors
+ a_id = @me.aspects.where(name: aspect_name).pick(:id)
+ visit("/aspects?a_ids[]=#{a_id}")
+end
+
When /^(.*) in the aspect creation modal$/ do |action|
within("#newAspectModal") do
step action