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
Merge requests
!176
Resolve "Sort updated comments chronoligically"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Sort updated comments chronoligically"
167-sort-updated-comments-chronoligically
into
master
Overview
0
Commits
4
Pipelines
6
Changes
1
Merged
Dominik Seeger
requested to merge
167-sort-updated-comments-chronoligically
into
master
5 years ago
Overview
0
Commits
4
Pipelines
6
Changes
1
Expand
Closes
#167 (closed)
Edited
5 years ago
by
robinwilliam.hundt
0
0
Merge request reports
Viewing commit
eb1bd452
Prev
Next
Show latest version
1 file
+
43
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
eb1bd452
wip tests
· eb1bd452
Dominik Seeger
authored
5 years ago
functional_tests/test_feedback_creation.py
+
43
−
0
Options
@@ -225,6 +225,49 @@ class UntestedParent:
def
test_comments_are_sorted_by_last_updated
(
self
):
self
.
_login
()
go_to_subscription
(
self
)
score_input
=
self
.
browser
.
find_element_by_id
(
'
score-input
'
)
score_input
.
send_keys
(
self
.
sub_type
.
full_score
)
# give feedback on first line
self
.
write_comments_on_lines
([(
1
,
'
first ever comment
'
)])
submit_btn
=
self
.
browser
.
find_element_by_id
(
'
submit-feedback
'
)
submit_btn
.
click
()
sub_url
=
'
subscription/
'
+
str
(
self
.
sub_type
.
pk
)
+
'
/ended
'
WebDriverWait
(
self
.
browser
,
10
).
until
(
ec
.
url_contains
(
sub_url
))
reset_browser_after_test
(
self
.
browser
,
self
.
live_server_url
)
# logs out user
user_snd
=
'
tutor_snd
'
password
=
'
p
'
fact
.
UserAccountFactory
(
username
=
user_snd
,
password
=
password
)
login
(
self
.
browser
,
self
.
live_server_url
,
user_snd
,
password
)
go_to_subscription
(
self
,
stage
=
'
validate
'
)
self
.
write_comments_on_lines
([(
1
,
'
the second comment
'
)])
self
.
browser
.
find_element_by_id
(
'
score-full
'
).
click
()
self
.
browser
.
find_element_by_id
(
'
submit-feedback
'
).
click
()
sub_url
=
'
subscription/
'
+
str
(
self
.
sub_type
.
pk
)
+
'
/ended
'
WebDriverWait
(
self
.
browser
,
10
).
until
(
ec
.
url_contains
(
sub_url
))
reset_browser_after_test
(
self
.
browser
,
self
.
live_server_url
)
# logs out user
self
.
_login
()
# goto history
score_input
=
self
.
browser
.
find_element_by_id
(
'
score-input
'
)
score_input
.
send_keys
(
self
.
sub_type
.
full_score
)
# validate that second comment is under the first comment
# give feedback on first line
self
.
write_comments_on_lines
([(
1
,
'
first comment updated
'
)])
# validate that the edited first comment is under the second comment
class
TestFeedbackCreationTutor
(
UntestedParent
.
TestFeedbackCreationGeneric
):
Loading