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
1c3df8e8
Commit
1c3df8e8
authored
Mar 16, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
bfb9e525
09601bb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
104 deletions
+80
-104
app/views/clusters/clusters/aws/_new.html.haml
app/views/clusters/clusters/aws/_new.html.haml
+2
-2
doc/ci/environments/index.md
doc/ci/environments/index.md
+2
-4
spec/features/issues/gfm_autocomplete_spec.rb
spec/features/issues/gfm_autocomplete_spec.rb
+76
-98
No files found.
app/views/clusters/clusters/aws/_new.html.haml
View file @
1c3df8e8
...
...
@@ -12,6 +12,6 @@
'role-arn'
=>
@aws_role
.
role_arn
,
'instance-types'
=>
@instance_types
,
'kubernetes-integration-help-path'
=>
help_page_path
(
'user/project/clusters/index'
),
'account-and-external-ids-help-path'
=>
help_page_path
(
'user/project/clusters/add_
remove
_clusters.md'
,
anchor:
'new-eks-cluster'
),
'create-role-arn-help-path'
=>
help_page_path
(
'user/project/clusters/add_
remove
_clusters.md'
,
anchor:
'new-eks-cluster'
),
'account-and-external-ids-help-path'
=>
help_page_path
(
'user/project/clusters/add_
eks
_clusters.md'
,
anchor:
'new-eks-cluster'
),
'create-role-arn-help-path'
=>
help_page_path
(
'user/project/clusters/add_
eks
_clusters.md'
,
anchor:
'new-eks-cluster'
),
'external-link-icon'
=>
sprite_icon
(
'external-link'
)
}
}
doc/ci/environments/index.md
View file @
1c3df8e8
...
...
@@ -6,9 +6,7 @@ type: reference
disqus_identifier
:
'
https://docs.gitlab.com/ee/ci/environments.html'
---
# Environments and deployments
> Introduced in GitLab 8.9.
# Environments and deployments **(FREE)**
Environments describe where code is deployed.
...
...
@@ -123,7 +121,7 @@ Some variables cannot be used as environment names or URLs.
For more information about the
`environment`
keywords, see
[
the `.gitlab-ci.yml` keyword reference
](
../yaml/README.md#environment
)
.
## Deployment tier of environments
(**FREE**)
## Deployment tier of environments
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/300741) in GitLab 13.10.
...
...
spec/features/issues/gfm_autocomplete_spec.rb
View file @
1c3df8e8
...
...
@@ -30,30 +30,60 @@ RSpec.describe 'GFM autocomplete', :js do
wait_for_requests
end
it
'updates issue description with GFM reference'
do
click_button
'Edit title and description'
describe
'issue description'
do
it
'updates with GFM reference'
do
click_button
'Edit title and description'
wait_for_requests
wait_for_requests
fill_in
'Description'
,
with:
"@
#{
user
.
name
[
0
...
3
]
}
"
fill_in
'Description'
,
with:
"@
#{
user
.
name
[
0
...
3
]
}
"
wait_for_requests
wait_for_requests
find_highlighted_autocomplete_item
.
click
find_highlighted_autocomplete_item
.
click
click_button
'Save changes'
click_button
'Save changes'
wait_for_requests
wait_for_requests
expect
(
find
(
'.description'
)).
to
have_text
(
user
.
to_reference
)
expect
(
find
(
'.description'
)).
to
have_text
(
user
.
to_reference
)
end
it
'allows quick actions'
do
click_button
'Edit title and description'
fill_in
'Description'
,
with:
'/'
expect
(
find_autocomplete_menu
).
to
be_visible
end
end
it
'opens quick action autocomplete when updating description'
do
click_button
'Edit title and description'
describe
'triggering autocomplete'
do
it
'only opens autocomplete menu when trigger character is after whitespace'
,
:aggregate_failures
do
fill_in
'Comment'
,
with:
'testing@'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
fill_in
'Description'
,
with:
'/'
fill_in
'Comment'
,
with:
'@@'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
expect
(
find_autocomplete_menu
).
to
be_visible
fill_in
'Comment'
,
with:
"@
#{
user
.
username
[
0
..
2
]
}
!"
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
fill_in
'Comment'
,
with:
"hello:
#{
user
.
username
[
0
..
2
]
}
"
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
fill_in
'Comment'
,
with:
'7:'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
fill_in
'Comment'
,
with:
'w:'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
fill_in
'Comment'
,
with:
'Ё:'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
fill_in
'Comment'
,
with:
"test
\n\n
@"
expect
(
find_autocomplete_menu
).
to
be_visible
end
end
it
'opens autocomplete menu when field starts with text'
do
...
...
@@ -92,12 +122,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_autocomplete_menu
).
to
have_text
(
'alert milestone'
)
end
it
'doesnt open autocomplete menu character is prefixed with text'
do
fill_in
'Comment'
,
with:
'testing@'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
end
it
'doesnt select the first item for non-assignee dropdowns'
do
fill_in
'Comment'
,
with:
':'
...
...
@@ -106,20 +130,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_autocomplete_menu
).
not_to
have_css
(
'.cur'
)
end
it
'does not open autocomplete menu when ":" is prefixed by a number and letters'
do
# Number.
fill_in
'Comment'
,
with:
'7:'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
# ASCII letter.
fill_in
'Comment'
,
with:
'w:'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
# Non-ASCII letter.
fill_in
'Comment'
,
with:
'Ё:'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
end
it
'selects the first item for assignee dropdowns'
do
fill_in
'Comment'
,
with:
'@'
...
...
@@ -191,18 +201,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_field
(
'Comment'
).
value
).
to
have_text
(
"~
\"
#{
label
.
title
}
\"
"
)
end
it
"shows dropdown after a new line"
do
fill_in
'Comment'
,
with:
"test
\n\n
@"
expect
(
find_autocomplete_menu
).
to
be_visible
end
it
"does not show dropdown when preceded with a special character"
do
fill_in
'Comment'
,
with:
'@@'
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
end
it
'doesn\'t wrap for assignee values'
do
fill_in
'Comment'
,
with:
"@
#{
user
.
username
[
0
]
}
"
...
...
@@ -219,18 +217,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_field
(
'Comment'
).
value
).
to
have_text
(
'thumbsdown'
)
end
it
'doesn\'t open autocomplete after non-word character'
do
fill_in
'Comment'
,
with:
"@
#{
user
.
username
[
0
..
2
]
}
!"
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
end
it
'doesn\'t open autocomplete if there is no space before'
do
fill_in
'Comment'
,
with:
"hello:
#{
user
.
username
[
0
..
2
]
}
"
expect
(
page
).
not_to
have_css
(
'.atwho-view'
)
end
it
'triggers autocomplete after selecting a quick action'
do
fill_in
'Comment'
,
with:
'/as'
...
...
@@ -449,22 +435,46 @@ RSpec.describe 'GFM autocomplete', :js do
wait_for_requests
end
it
'updates issue description with GFM reference'
do
click_button
'Edit title and description'
describe
'issue description'
do
it
'updates with GFM reference'
do
click_button
'Edit title and description'
wait_for_requests
wait_for_requests
fill_in
'Description'
,
with:
"@
#{
user
.
name
[
0
...
3
]
}
"
fill_in
'Description'
,
with:
"@
#{
user
.
name
[
0
...
3
]
}
"
wait_for_requests
wait_for_requests
find_highlighted_tribute_autocomplete_menu
.
click
find_highlighted_tribute_autocomplete_menu
.
click
click_button
'Save changes'
click_button
'Save changes'
wait_for_requests
wait_for_requests
expect
(
find
(
'.description'
)).
to
have_text
(
user
.
to_reference
)
end
end
describe
'triggering autocomplete'
do
it
'only opens autocomplete menu when trigger character is after whitespace'
,
:aggregate_failures
do
fill_in
'Comment'
,
with:
'testing@'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
fill_in
'Comment'
,
with:
"hello:
#{
user
.
username
[
0
..
2
]
}
"
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
fill_in
'Comment'
,
with:
'7:'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
fill_in
'Comment'
,
with:
'w:'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
expect
(
find
(
'.description'
)).
to
have_text
(
user
.
to_reference
)
fill_in
'Comment'
,
with:
'Ё:'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
fill_in
'Comment'
,
with:
"test
\n\n
@"
expect
(
find_tribute_autocomplete_menu
).
to
be_visible
end
end
it
'opens autocomplete menu when field starts with text'
do
...
...
@@ -503,26 +513,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_tribute_autocomplete_menu
).
to
have_text
(
'alert milestone'
)
end
it
'does not open autocomplete menu when trigger character is prefixed with text'
do
fill_in
'Comment'
,
with:
'testing@'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
end
it
'does not open autocomplete menu when ":" is prefixed by a number and letters'
do
# Number.
fill_in
'Comment'
,
with:
'7:'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
# ASCII letter.
fill_in
'Comment'
,
with:
'w:'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
# Non-ASCII letter.
fill_in
'Comment'
,
with:
'Ё:'
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
end
it
'selects the first item for assignee dropdowns'
do
fill_in
'Comment'
,
with:
'@'
...
...
@@ -570,12 +560,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_field
(
'Comment'
).
value
).
to
have_text
(
"~
\"
#{
label
.
title
}
\"
"
)
end
it
"shows dropdown after a new line"
do
fill_in
'Comment'
,
with:
"test
\n\n
@"
expect
(
find_tribute_autocomplete_menu
).
to
be_visible
end
it
'doesn\'t wrap for assignee values'
do
fill_in
'Comment'
,
with:
"@
#{
user
.
username
[
0
..
2
]
}
"
...
...
@@ -592,12 +576,6 @@ RSpec.describe 'GFM autocomplete', :js do
expect
(
find_field
(
'Comment'
).
value
).
to
have_text
(
'cartwheel_tone1'
)
end
it
'does not open autocomplete if there is no space before'
do
fill_in
'Comment'
,
with:
"hello:
#{
user
.
username
[
0
..
2
]
}
"
expect
(
page
).
not_to
have_css
(
'.tribute-container'
)
end
it
'autocompletes for quick actions'
do
fill_in
'Comment'
,
with:
'/as'
...
...
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