summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-03-24 12:21:47 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2018-03-24 12:21:47 +1100
commit2faae59efac4a3d2c224af550da7b4b5bfc46a01 (patch)
treee311f8b2eec65ea0cef36452e633cb0bd062a9d4
parent0708d5abaad9771e3150535d1f0ad4ee2ac60725 (diff)
downloadgitlab-ce-2faae59efac4a3d2c224af550da7b4b5bfc46a01.tar.gz
Replace `I can edit after preview` scenario
Nothing was added to an rspec spec because this scenario just checks if the `Write` tab exists and is visible. This checks are no longer needed as we already have ckicks on the tab in the lines above. See the `previews content` it-block in spec/features/projects/issues/user_creates_issue_spec.rb.
-rw-r--r--features/project/issues/issues.feature6
-rw-r--r--features/steps/shared/markdown.rb11
2 files changed, 0 insertions, 17 deletions
diff --git a/features/project/issues/issues.feature b/features/project/issues/issues.feature
index d9cbfc7ab1a..74a8f8244e4 100644
--- a/features/project/issues/issues.feature
+++ b/features/project/issues/issues.feature
@@ -104,12 +104,6 @@ Feature: Project Issues
# Issue description preview
@javascript
- Scenario: I can edit after preview
- Given I click link "New Issue"
- And I preview a description text like "Bug fixed :smile:"
- Then I should see the Markdown write tab
-
- @javascript
Scenario: I submit new unassigned issue as guest
Given public project "Community"
When I visit project "Community" page
diff --git a/features/steps/shared/markdown.rb b/features/steps/shared/markdown.rb
index ddadc0ce1d0..c66280127e9 100644
--- a/features/steps/shared/markdown.rb
+++ b/features/steps/shared/markdown.rb
@@ -18,17 +18,6 @@ module SharedMarkdown
expect(find('.gfm-form .js-md-preview')).not_to be_visible
end
- step 'I should see the Markdown write tab' do
- expect(first('.gfm-form')).to have_link('Write', visible: true)
- end
-
- step 'I preview a description text like "Bug fixed :smile:"' do
- page.within(first('.gfm-form')) do
- fill_in 'Description', with: 'Bug fixed :smile:'
- click_link 'Preview'
- end
- end
-
step 'I haven\'t written any description text' do
find('.gfm-form').fill_in 'Description', with: ''
end