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

left_navbar_steps.rb « step_definitions « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f84f3526af0335e67558c147f835362b0be18d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

When /^(?:|I )click on "([^"]*)" navbar title$/ do |title|
  with_scope(".info-bar") do
    find("h5", text: title).click
  end
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