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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-03-01 19:33:13 +0300
committerRémy Coutable <remy@rymai.me>2016-03-15 20:22:02 +0300
commit54ec7e959900493b6e9174bf4dfe09ed0afd1e46 (patch)
tree22b79458e9d5ad2aa8ccf7ae00935c9a14aae33c /features/steps
parent0444fa560acd07255960284f19b1de6499cd5910 (diff)
Improving the original label-subscribing implementation
1. Make the "subscribed" text in Issuable sidebar reflect the labels subscription status 2. Current user mut be logged-in to toggle issue/MR/label subscription
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/labels.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/project/labels.rb b/features/steps/project/labels.rb
index 3f800a10594..17944527e3a 100644
--- a/features/steps/project/labels.rb
+++ b/features/steps/project/labels.rb
@@ -10,19 +10,19 @@ class Spinach::Features::Labels < Spinach::FeatureSteps
visit namespace_project_labels_path(project.namespace, project)
end
- step 'I should see that I am subscribed' do
+ step 'I should see that I am subscribed to the "bug" label' do
expect(subscribe_button).to have_content 'Unsubscribe'
end
- step 'I should see that I am unsubscribed' do
+ step 'I should see that I am not subscribed to the "bug" label' do
expect(subscribe_button).to have_content 'Subscribe'
end
- step 'I click button "Unsubscribe"' do
+ step 'I click button "Unsubscribe" for the "bug" label' do
subscribe_button.click
end
- step 'I click button "Subscribe"' do
+ step 'I click button "Subscribe" for the "bug" label' do
subscribe_button.click
end