Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_patterns
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ui_patterns
Commits
d306f1d2
Commit
d306f1d2
authored
6 years ago
by
Antonio De Marco
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#118
: Fix tests.
parent
9f954217
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
behat.yml.dist
+0
-3
0 additions, 3 deletions
behat.yml.dist
tests/features/overview.feature
+4
-9
4 additions, 9 deletions
tests/features/overview.feature
with
4 additions
and
12 deletions
behat.yml.dist
+
0
−
3
View file @
d306f1d2
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
tests/features/overview.feature
+
4
−
9
View file @
d306f1d2
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment