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
405e447b
Commit
405e447b
authored
Jan 25, 2021
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '299405-fixed-flaky-tests' into 'master'
Fixed the flaky tests See merge request gitlab-org/gitlab!52396
parents
036539ce
b9a57722
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
spec/features/projects/files/dockerfile_dropdown_spec.rb
spec/features/projects/files/dockerfile_dropdown_spec.rb
+5
-3
spec/features/projects/files/gitignore_dropdown_spec.rb
spec/features/projects/files/gitignore_dropdown_spec.rb
+6
-4
spec/features/projects/files/gitlab_ci_syntax_yml_dropdown_spec.rb
...ures/projects/files/gitlab_ci_syntax_yml_dropdown_spec.rb
+4
-3
spec/features/projects/files/gitlab_ci_yml_dropdown_spec.rb
spec/features/projects/files/gitlab_ci_yml_dropdown_spec.rb
+6
-4
No files found.
spec/features/projects/files/dockerfile_dropdown_spec.rb
View file @
405e447b
...
...
@@ -2,14 +2,16 @@
require 'spec_helper'
RSpec.describe 'Projects > Files > User wants to add a Dockerfile file', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/299405' do
RSpec.describe 'Projects > Files > User wants to add a Dockerfile file', :js do
include Spec::Support::Helpers::Features::EditorLiteSpecHelpers
before do
project = create(:project, :repository)
sign_in project.owner
visit project_new_blob_path(project, 'master', file_name: 'Dockerfile')
end
it 'user can pick a Dockerfile file from the dropdown'
, :js
do
it 'user can pick a Dockerfile file from the dropdown' do
expect(page).to have_css('.dockerfile-selector')
find('.js-dockerfile-selector').click
...
...
@@ -24,6 +26,6 @@ RSpec.describe 'Projects > Files > User wants to add a Dockerfile file', quarant
wait_for_requests
expect(page).to have_css('.dockerfile-selector .dropdown-toggle-text', text: 'Apply a template')
expect(
pag
e).to have_content('COPY ./ /usr/local/apache2/htdocs/')
expect(
editor_get_valu
e).to have_content('COPY ./ /usr/local/apache2/htdocs/')
end
end
spec/features/projects/files/gitignore_dropdown_spec.rb
View file @
405e447b
...
...
@@ -2,14 +2,16 @@
require
'spec_helper'
RSpec
.
describe
'Projects > Files > User wants to add a .gitignore file'
,
quarantine:
'https://gitlab.com/gitlab-org/gitlab/-/issues/299405'
do
RSpec
.
describe
'Projects > Files > User wants to add a .gitignore file'
,
:js
do
include
Spec
::
Support
::
Helpers
::
Features
::
EditorLiteSpecHelpers
before
do
project
=
create
(
:project
,
:repository
)
sign_in
project
.
owner
visit
project_new_blob_path
(
project
,
'master'
,
file_name:
'.gitignore'
)
end
it
'user can pick a .gitignore file from the dropdown'
,
:js
do
it
'user can pick a .gitignore file from the dropdown'
do
expect
(
page
).
to
have_css
(
'.gitignore-selector'
)
find
(
'.js-gitignore-selector'
).
click
...
...
@@ -24,7 +26,7 @@ RSpec.describe 'Projects > Files > User wants to add a .gitignore file', quarant
wait_for_requests
expect
(
page
).
to
have_css
(
'.gitignore-selector .dropdown-toggle-text'
,
text:
'Apply a template'
)
expect
(
pag
e
).
to
have_content
(
'/.bundle'
)
expect
(
pag
e
).
to
have_content
(
'config/initializers/secret_token.rb'
)
expect
(
editor_get_valu
e
).
to
have_content
(
'/.bundle'
)
expect
(
editor_get_valu
e
).
to
have_content
(
'config/initializers/secret_token.rb'
)
end
end
spec/features/projects/files/gitlab_ci_syntax_yml_dropdown_spec.rb
View file @
405e447b
...
...
@@ -3,6 +3,8 @@
require
'spec_helper'
RSpec
.
describe
'Projects > Files > User wants to add a .gitlab-ci.yml file'
do
include
Spec
::
Support
::
Helpers
::
Features
::
EditorLiteSpecHelpers
before
do
project
=
create
(
:project
,
:repository
)
sign_in
project
.
owner
...
...
@@ -34,8 +36,7 @@ RSpec.describe 'Projects > Files > User wants to add a .gitlab-ci.yml file' do
let
(
:experiment_active
)
{
true
}
let
(
:in_experiment_group
)
{
true
}
it
'allows the user to pick a "Learn CI/CD syntax" template from the dropdown'
,
:js
,
{
quarantine:
{
issue:
'https://gitlab.com/gitlab-org/gitlab/-/issues/297347'
}
}
do
it
'allows the user to pick a "Learn CI/CD syntax" template from the dropdown'
,
:js
do
expect
(
page
).
to
have_css
(
'.gitlab-ci-syntax-yml-selector'
)
find
(
'.js-gitlab-ci-syntax-yml-selector'
).
click
...
...
@@ -50,7 +51,7 @@ RSpec.describe 'Projects > Files > User wants to add a .gitlab-ci.yml file' do
wait_for_requests
expect
(
page
).
to
have_css
(
'.gitlab-ci-syntax-yml-selector .dropdown-toggle-text'
,
text:
'Learn CI/CD syntax'
)
expect
(
pag
e
).
to
have_content
(
'You can use artifacts to pass data to jobs in later stages.'
)
expect
(
editor_get_valu
e
).
to
have_content
(
'You can use artifacts to pass data to jobs in later stages.'
)
end
end
end
spec/features/projects/files/gitlab_ci_yml_dropdown_spec.rb
View file @
405e447b
...
...
@@ -2,14 +2,16 @@
require
'spec_helper'
RSpec
.
describe
'Projects > Files > User wants to add a .gitlab-ci.yml file'
,
quarantine:
'https://gitlab.com/gitlab-org/gitlab/-/issues/299405'
do
RSpec
.
describe
'Projects > Files > User wants to add a .gitlab-ci.yml file'
,
:js
do
include
Spec
::
Support
::
Helpers
::
Features
::
EditorLiteSpecHelpers
before
do
project
=
create
(
:project
,
:repository
)
sign_in
project
.
owner
visit
project_new_blob_path
(
project
,
'master'
,
file_name:
'.gitlab-ci.yml'
)
end
it
'user can pick a template from the dropdown'
,
:js
do
it
'user can pick a template from the dropdown'
do
expect
(
page
).
to
have_css
(
'.gitlab-ci-yml-selector'
)
find
(
'.js-gitlab-ci-yml-selector'
).
click
...
...
@@ -24,7 +26,7 @@ RSpec.describe 'Projects > Files > User wants to add a .gitlab-ci.yml file', qua
wait_for_requests
expect
(
page
).
to
have_css
(
'.gitlab-ci-yml-selector .dropdown-toggle-text'
,
text:
'Apply a template'
)
expect
(
pag
e
).
to
have_content
(
'This file is a template, and might need editing before it works on your project'
)
expect
(
pag
e
).
to
have_content
(
'jekyll build -d test'
)
expect
(
editor_get_valu
e
).
to
have_content
(
'This file is a template, and might need editing before it works on your project'
)
expect
(
editor_get_valu
e
).
to
have_content
(
'jekyll build -d test'
)
end
end
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