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
4e4af892
Commit
4e4af892
authored
Aug 11, 2021
by
Tomislav Nikić
Committed by
Mark Lapierre
Aug 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LMR QA | Main | Adding additional tests
parent
f8382487
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
qa/qa/fixtures/export.tar.gz
qa/qa/fixtures/export.tar.gz
+0
-0
qa/qa/page/component/import/gitlab.rb
qa/qa/page/component/import/gitlab.rb
+3
-1
qa/qa/resource/merge_request.rb
qa/qa/resource/merge_request.rb
+2
-1
qa/qa/specs/features/browser_ui/3_create/merge_request/view_merge_request_diff_patch_spec.rb
...reate/merge_request/view_merge_request_diff_patch_spec.rb
+4
-3
No files found.
qa/qa/fixtures/export.tar.gz
View file @
4e4af892
No preview for this file type
qa/qa/page/component/import/gitlab.rb
View file @
4e4af892
...
...
@@ -5,6 +5,8 @@ module QA
module
Component
module
Import
module
Gitlab
extend
QA
::
Page
::
PageConcern
def
self
.
included
(
base
)
super
...
...
@@ -30,7 +32,7 @@ module QA
click_element
(
:import_project_button
)
wait_until
(
reload:
false
)
do
has_notice?
(
"The project was successfully imported."
)
has_notice?
(
"The project was successfully imported."
)
||
has_element?
(
:project_name_content
)
end
end
end
...
...
qa/qa/resource/merge_request.rb
View file @
4e4af892
...
...
@@ -152,7 +152,8 @@ module QA
@project
=
Resource
::
ImportProject
.
fabricate_via_browser_ui!
# Setting the name here, since otherwise some tests will look for an existing file in
# the proejct without ever knowing what is in it.
@file_name
=
"github_controller_spec.rb"
@file_name
=
"added_file-00000000.txt"
@source_branch
=
"large_merge_request"
visit
(
"
#{
project
.
web_url
}
/-/merge_requests/1"
)
current_url
end
...
...
qa/qa/specs/features/browser_ui/3_create/merge_request/view_merge_request_diff_patch_spec.rb
View file @
4e4af892
...
...
@@ -15,7 +15,7 @@ module QA
merge_request
.
visit!
end
it
'views the merge request email patches'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1689'
do
it
'views the merge request email patches'
,
:can_use_large_setup
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1689'
do
Page
::
MergeRequest
::
Show
.
perform
(
&
:view_email_patches
)
expect
(
page
.
text
).
to
start_with
(
'From'
)
...
...
@@ -23,10 +23,11 @@ module QA
expect
(
page
).
to
have_content
(
"diff --git a/
#{
merge_request
.
file_name
}
b/
#{
merge_request
.
file_name
}
"
)
end
it
'views the merge request plain diff'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/417'
do
it
'views the merge request plain diff'
,
:can_use_large_setup
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/417'
do
Page
::
MergeRequest
::
Show
.
perform
(
&
:view_plain_diff
)
expect
(
page
.
text
).
to
start_with
(
"diff --git a/
#{
merge_request
.
file_name
}
b/
#{
merge_request
.
file_name
}
"
)
expect
(
page
.
text
).
to
start_with
(
'diff'
)
expect
(
page
).
to
have_content
(
"diff --git a/
#{
merge_request
.
file_name
}
b/
#{
merge_request
.
file_name
}
"
)
expect
(
page
).
to
have_content
(
'+File Added'
)
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