Skip to content
Snippets Groups Projects
Commit d306f1d2 authored by Antonio De Marco's avatar Antonio De Marco
Browse files

Issue #118: Fix tests.

parent 9f954217
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,6 @@ default:
quote: '.quote'
modal: '.modal-dialog'
preview: '.pattern-preview'
button_default: '.pattern-preview--default'
button_primary: '.pattern-preview--primary'
button_error: '.pattern-preview--error'
selectors:
error_message_selector: '.alert.alert-danger'
text:
......
......@@ -88,7 +88,7 @@ Feature: Overview
| Pattern 'bad_pattern' is skipped because of the following validation error(s): |
| Validation error on "bad_pattern.label": This value should not be null. |
Scenario: Patterns simple page of button will show all button's variants with custom template.
Scenario: "Button" overview page displays all pattern's variants.
Given I am logged in as a user with the "access patterns page" permission
And I am on "/patterns/button"
......@@ -96,11 +96,6 @@ Feature: Overview
Then I should see the heading "Button"
And I should see "A simple button."
And I should see "Default" in the "preview"
And I should see "Submit" in the "button_default"
And I should see "Primary" in the "preview"
And I should see "Submit" in the "button_primary"
And I should see "Error" in the "preview"
And I should see "Cancel" in the "button_error"
And the ".btn.btn-primary" element should contain "Submit"
And the ".btn.btn-default" element should contain "Submit"
And the ".btn.btn-error" element should contain "Cancel"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment