diff --git a/behat.yml.dist b/behat.yml.dist index 1cfd61595372016b5b52e63f0452496420bf472d..69731705fd52c608eaf3fee44de7d45de5ce231f 100644 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -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: diff --git a/tests/features/overview.feature b/tests/features/overview.feature index 86bafe9da4c66192a6ddcb8394e71091341655af..7827a0726a202c4f6ce25eb42d4121d744bf5470 100644 --- a/tests/features/overview.feature +++ b/tests/features/overview.feature @@ -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"