Fix more Markdown preview tests

This commit is contained in:
Vinnie Okada 2014-10-18 18:43:45 -05:00
parent 74c82ae325
commit 5bb8aff5dd
2 changed files with 5 additions and 4 deletions

View File

@ -195,14 +195,14 @@ Feature: Project Merge Requests
Given I visit merge request page "Bug NS-04"
And I click link "Edit" for the merge request
And I haven't written any description text
Then I should not see the Markdown preview button
Then The Markdown preview tab should say there is nothing to do
@javascript
Scenario: I can preview with text
Given I visit merge request page "Bug NS-04"
And I click link "Edit" for the merge request
And I write a description like "Nice"
Then I should see the Markdown preview button
And I write a description like ":+1: Nice"
Then The Markdown preview tab should display rendered Markdown
@javascript
Scenario: I preview a merge request description
@ -217,4 +217,4 @@ Feature: Project Merge Requests
Given I visit merge request page "Bug NS-04"
And I click link "Edit" for the merge request
And I preview a description text like "Bug fixed :smile:"
Then I should see the Markdown edit button
Then I should see the Markdown write tab

View File

@ -1,5 +1,6 @@
class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
include SharedAuthentication
include SharedIssuable
include SharedProject
include SharedNote
include SharedPaths