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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
62364576
Commit
62364576
authored
Oct 03, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mattermost_slash_commands
parent
c3d03582
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb
.../services/user_activates_mattermost_slash_command_spec.rb
+4
-4
No files found.
spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb
View file @
62364576
...
@@ -76,7 +76,7 @@ feature 'Setup Mattermost slash commands', :js do
...
@@ -76,7 +76,7 @@ feature 'Setup Mattermost slash commands', :js do
select_element
=
find
(
'#mattermost_team_id'
)
select_element
=
find
(
'#mattermost_team_id'
)
selected_option
=
select_element
.
find
(
'option[selected]'
)
selected_option
=
select_element
.
find
(
'option[selected]'
)
expect
(
select_element
[
'disabled'
]).
to
be
(
true
)
expect
(
select_element
[
'disabled'
]).
to
eq
(
"true"
)
expect
(
selected_option
).
to
have_content
(
team_name
.
to_s
)
expect
(
selected_option
).
to
have_content
(
team_name
.
to_s
)
end
end
...
@@ -104,7 +104,7 @@ feature 'Setup Mattermost slash commands', :js do
...
@@ -104,7 +104,7 @@ feature 'Setup Mattermost slash commands', :js do
select_element
=
find
(
'#mattermost_team_id'
)
select_element
=
find
(
'#mattermost_team_id'
)
expect
(
select_element
[
'disabled'
]).
to
be
(
false
)
expect
(
select_element
[
'disabled'
]).
to
be
_falsey
expect
(
select_element
.
all
(
'option'
).
count
).
to
eq
(
3
)
expect
(
select_element
.
all
(
'option'
).
count
).
to
eq
(
3
)
end
end
...
@@ -122,7 +122,7 @@ feature 'Setup Mattermost slash commands', :js do
...
@@ -122,7 +122,7 @@ feature 'Setup Mattermost slash commands', :js do
click_link
'Add to Mattermost'
click_link
'Add to Mattermost'
expect
(
find
(
'input[type="submit"]'
)[
'disabled'
]).
not_to
be
(
true
)
expect
(
find
(
'input[type="submit"]'
)[
'disabled'
]).
not_to
eq
(
"true"
)
end
end
it
'disables the submit button if the required fields are not provided'
,
:js
do
it
'disables the submit button if the required fields are not provided'
,
:js
do
...
@@ -132,7 +132,7 @@ feature 'Setup Mattermost slash commands', :js do
...
@@ -132,7 +132,7 @@ feature 'Setup Mattermost slash commands', :js do
fill_in
(
'mattermost_trigger'
,
with:
''
)
fill_in
(
'mattermost_trigger'
,
with:
''
)
expect
(
find
(
'input[type="submit"]'
)[
'disabled'
]).
to
be
(
true
)
expect
(
find
(
'input[type="submit"]'
)[
'disabled'
]).
to
eq
(
"true"
)
end
end
def
stub_teams
(
count:
0
)
def
stub_teams
(
count:
0
)
...
...
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