Delete labels spinach test bc covered by rspec
This commit is contained in:
parent
f1710bd131
commit
ee63415c74
2 changed files with 0 additions and 47 deletions
|
@ -1,15 +0,0 @@
|
||||||
@labels
|
|
||||||
Feature: Labels
|
|
||||||
Background:
|
|
||||||
Given I sign in as a user
|
|
||||||
And I own project "Shop"
|
|
||||||
And project "Shop" has labels: "bug", "feature", "enhancement"
|
|
||||||
When I visit project "Shop" labels page
|
|
||||||
|
|
||||||
@javascript
|
|
||||||
Scenario: I can subscribe to a label
|
|
||||||
Then I should see that I am not subscribed to the "bug" label
|
|
||||||
When I click button "Subscribe" for the "bug" label
|
|
||||||
Then I should see that I am subscribed to the "bug" label
|
|
||||||
When I click button "Unsubscribe" for the "bug" label
|
|
||||||
Then I should see that I am not subscribed to the "bug" label
|
|
|
@ -1,32 +0,0 @@
|
||||||
class Spinach::Features::Labels < Spinach::FeatureSteps
|
|
||||||
include SharedAuthentication
|
|
||||||
include SharedIssuable
|
|
||||||
include SharedProject
|
|
||||||
include SharedPaths
|
|
||||||
|
|
||||||
step 'And I visit project "Shop" labels page' do
|
|
||||||
visit namespace_project_labels_path(project.namespace, project)
|
|
||||||
end
|
|
||||||
|
|
||||||
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 not subscribed to the "bug" label' do
|
|
||||||
expect(subscribe_button).to have_content 'Subscribe'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I click button "Unsubscribe" for the "bug" label' do
|
|
||||||
subscribe_button.click
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I click button "Subscribe" for the "bug" label' do
|
|
||||||
subscribe_button.click
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def subscribe_button
|
|
||||||
first('.js-subscribe-button', visible: true)
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in a new issue