Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5e9afab4
Commit
5e9afab4
authored
Aug 03, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `findErrorMessage` to `findErrorMessageText`
parent
9246a50d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ee/spec/frontend/groups/settings/components/comma_separated_list_token_selector_spec.js
...gs/components/comma_separated_list_token_selector_spec.js
+9
-6
No files found.
ee/spec/frontend/groups/settings/components/comma_separated_list_token_selector_spec.js
View file @
5e9afab4
...
...
@@ -31,7 +31,10 @@ describe('CommaSeparatedListTokenSelector', () => {
const
findTokenSelectorDropdown
=
()
=>
findTokenSelector
().
find
(
'
[role="menu"]
'
);
const
findErrorMessage
=
()
=>
findTokenSelector
().
find
(
'
[role="menuitem"][disabled="disabled"]
'
);
const
findErrorMessageText
=
()
=>
findTokenSelector
()
.
find
(
'
[role="menuitem"][disabled="disabled"]
'
)
.
text
();
const
setTokenSelectorInputValue
=
value
=>
{
const
tokenSelectorInput
=
findTokenSelectorInput
();
...
...
@@ -152,7 +155,7 @@ describe('CommaSeparatedListTokenSelector', () => {
tokenSelectorTriggerEnter
();
expect
(
findErrorMessage
().
t
ext
()).
toBe
(
'
The value entered is invalid
'
);
expect
(
findErrorMessage
T
ext
()).
toBe
(
'
The value entered is invalid
'
);
});
});
...
...
@@ -169,7 +172,7 @@ describe('CommaSeparatedListTokenSelector', () => {
tokenSelectorTriggerEnter
();
expect
(
findErrorMessage
().
t
ext
()).
toBe
(
'
The value entered is not allowed
'
);
expect
(
findErrorMessage
T
ext
()).
toBe
(
'
The value entered is not allowed
'
);
});
});
...
...
@@ -188,7 +191,7 @@ describe('CommaSeparatedListTokenSelector', () => {
tokenSelectorTriggerEnter
();
expect
(
findErrorMessage
().
t
ext
()).
toBe
(
'
The value entered is invalid
'
);
expect
(
findErrorMessage
T
ext
()).
toBe
(
'
The value entered is invalid
'
);
});
it
(
'
displays `disallowedValueErrorMessage` if regex passes but value is in the disallowed list
'
,
async
()
=>
{
...
...
@@ -205,7 +208,7 @@ describe('CommaSeparatedListTokenSelector', () => {
tokenSelectorTriggerEnter
();
expect
(
findErrorMessage
().
t
ext
()).
toBe
(
'
The value entered is not allowed
'
);
expect
(
findErrorMessage
T
ext
()).
toBe
(
'
The value entered is not allowed
'
);
});
});
});
...
...
@@ -267,7 +270,7 @@ describe('CommaSeparatedListTokenSelector', () => {
tokenSelectorTriggerEnter
();
expect
(
findErrorMessage
().
t
ext
()).
toBe
(
'
The value entered is invalid
'
);
expect
(
findErrorMessage
T
ext
()).
toBe
(
'
The value entered is invalid
'
);
await
setTokenSelectorInputValue
(
'
foo bar
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment