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/custom_web_steps.rb')
-rw-r--r--features/step_definitions/custom_web_steps.rb82
1 files changed, 1 insertions, 81 deletions
diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb
index 06c291c44..8f2bde9f5 100644
--- a/features/step_definitions/custom_web_steps.rb
+++ b/features/step_definitions/custom_web_steps.rb
@@ -61,18 +61,6 @@ And /^I submit the form$/ do
find("input[type='submit']").click
end
-And /^I expand the publisher$/ do
- click_publisher
-end
-
-And /^I close the publisher$/ do
- find("#publisher .md-cancel").click
-end
-
-Then /^the publisher should be expanded$/ do
- find("#publisher")["class"].should_not include("closed")
-end
-
Then /^the text area wrapper mobile should be with attachments$/ do
find("#publisher-textarea-wrapper")["class"].should include("with_attachments")
end
@@ -88,50 +76,6 @@ And /^I hover over the "([^"]+)"$/ do |element|
find("#{element}", match: :first).hover
end
-When /^I prepare the deletion of the first post$/ do
- find(".stream .stream-element", match: :first).hover
- within(find(".stream .stream-element", match: :first)) do
- ctrl = find(".control-icons")
- ctrl.hover
- ctrl.find(".remove_post").click
- end
-end
-
-When /^I prepare hiding the first post$/ do
- find(".stream .stream-element", match: :first).hover
- within(find(".stream .stream-element", match: :first)) do
- ctrl = find(".control-icons")
- ctrl.hover
- ctrl.find(".hide_post").click
- end
-end
-
-When /^I click to delete the first post$/ do
- accept_alert do
- step "I prepare the deletion of the first post"
- end
- expect(find(".stream")).to have_no_css(".stream-element.loaded.deleting")
-end
-
-When /^I click to hide the first post$/ do
- accept_alert do
- step "I prepare hiding the first post"
- end
-end
-
-When /^I click to delete the first comment$/ do
- within("div.comment", match: :first) do
- find(".comment_delete", visible: false).click
- end
-end
-
-When /^I click to delete the first uploaded photo$/ do
- page.execute_script("$('#photodropzone .x').css('display', 'block');")
- image_count = all(".publisher_photo img", wait: false).count
- find("#photodropzone .x", match: :first).trigger "click"
- page.assert_selector(".publisher_photo img", count: image_count - 1)
-end
-
And /^I click on selector "([^"]*)"$/ do |selector|
find(selector).click
end
@@ -229,15 +173,7 @@ When /^I resize my window to 800x600$/ do
page.driver.resize(800, 600)
end
-Then 'I should see an image attached to the post' do
- step %(I should see a "img" within ".stream-element div.photo-attachments")
-end
-
-Then 'I press the attached image' do
- step %(I press the 1st "img" within ".stream-element div.photo-attachments")
-end
-
-And "I wait for the popovers to appear" do
+And /^I wait for the popovers to appear$/ do
expect(page).to have_selector(".popover", count: 3)
end
@@ -290,22 +226,6 @@ When /^I focus the "([^"]+)" field$/ do |field|
find_field(field).click
end
-Given /^I have configured a Bitcoin address$/ do
- AppConfig.settings.bitcoin_address = "AAAAAA"
-end
-
-Then /^I should see the Bitcoin address$/ do
- find("#bitcoin_address")['value'].should == "AAAAAA"
-end
-
-Given /^I have configured a Liberapay username$/ do
- AppConfig.settings.liberapay_username = "BBBBBB"
-end
-
-Then /^I should see the Liberapay donate button$/ do
- find("#liberapay-button")["href"].should == "https://liberapay.com/BBBBBB/donate"
-end
-
Given /^"([^"]*)" is hidden$/ do |selector|
page.should have_selector(selector, visible: false)
page.should_not have_selector(selector)