Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
grady
Commits
4ef9067a
Commit
4ef9067a
authored
5 years ago
by
robinwilliam.hundt
Browse files
Options
Downloads
Patches
Plain Diff
Fixed screenshots
parent
08ba8ad9
No related branches found
No related tags found
1 merge request
!170
Resolve "Updating own past feedback sets other tutors assignment to is_done=True"
Pipeline
#105417
passed
5 years ago
Stage: build
Stage: test
Stage: build_image
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
functional_tests/.gitignore
+1
-1
1 addition, 1 deletion
functional_tests/.gitignore
functional_tests/test_export_modal.py
+5
-2
5 additions, 2 deletions
functional_tests/test_export_modal.py
with
8 additions
and
4 deletions
.gitlab-ci.yml
+
2
−
1
View file @
4ef9067a
...
...
@@ -108,7 +108,8 @@ test_frontend:
-
HEADLESS_TESTS=True pytest --ds=grady.settings.test functional_tests
artifacts
:
paths
:
-
.screenshots/
-
functional_tests/screenshots/
when
:
on_failure
expire_in
:
30 days
test_frontend_unit
:
...
...
This diff is collapsed.
Click to expand it.
functional_tests/.gitignore
+
1
−
1
View file @
4ef9067a
export.json
export.csv
screenshots
This diff is collapsed.
Click to expand it.
functional_tests/test_export_modal.py
+
5
−
2
View file @
4ef9067a
...
...
@@ -26,6 +26,7 @@ def expect_file_to_be_downloaded(path):
JSON_EXPORT_FILE
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
export.json
'
)
SCREENSHOTS
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
screenshots
'
)
class
ExportTestModal
(
LiveServerTestCase
):
...
...
@@ -56,12 +57,14 @@ class ExportTestModal(LiveServerTestCase):
def
tearDown
(
self
):
try
:
os
.
mkdir
(
'
.screenshots
'
)
os
.
mkdir
(
SCREENSHOTS
)
except
FileExistsError
:
pass
for
method
,
error
in
self
.
_outcome
.
errors
:
if
error
:
self
.
browser
.
get_screenshot_as_file
(
"
.screenshots/
"
+
self
.
id
()
+
"
.png
"
)
self
.
browser
.
get_screenshot_as_file
(
os
.
path
.
join
(
SCREENSHOTS
,
self
.
id
()
+
"
.png
"
)
)
reset_browser_after_test
(
self
.
browser
,
self
.
live_server_url
)
def
_login
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment