From d306f1d2d2df506e6bead8a10a25cdaa6f5ed632 Mon Sep 17 00:00:00 2001 From: Antonio De Marco <antonio@nuvole.org> Date: Sat, 6 Oct 2018 13:54:30 +0200 Subject: [PATCH] Issue #118: Fix tests. --- behat.yml.dist | 3 --- tests/features/overview.feature | 13 ++++--------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/behat.yml.dist b/behat.yml.dist index 1cfd6159..69731705 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 86bafe9d..7827a072 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" -- GitLab