Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9c95b107
Commit
9c95b107
authored
Dec 29, 2015
by
raeeschachar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test can create note with tags failing on Chrome
parent
5df15fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
common/test/acceptance/tests/lms/test_lms_edxnotes.py
+34
-34
No files found.
common/test/acceptance/tests/lms/test_lms_edxnotes.py
View file @
9c95b107
...
...
@@ -50,21 +50,21 @@ class EdxNotesTestMixin(UniqueCourseTest):
"html"
,
"Test HTML 1"
,
data
=
"""
<p><span class="{}">Annotate this
text
!</span></p>
<p>Annotate this
text
</p>
<p><span class="{}">Annotate this!</span></p>
<p>Annotate this</p>
"""
.
format
(
self
.
selector
)
),
XBlockFixtureDesc
(
"html"
,
"Test HTML 2"
,
data
=
"""<p><span class="{}">Annotate this
text
!</span></p>"""
.
format
(
self
.
selector
)
data
=
"""<p><span class="{}">Annotate this!</span></p>"""
.
format
(
self
.
selector
)
),
),
XBlockFixtureDesc
(
"vertical"
,
"Test Unit 2"
)
.
add_children
(
XBlockFixtureDesc
(
"html"
,
"Test HTML 3"
,
data
=
"""<p><span class="{}">Annotate this
text
!</span></p>"""
.
format
(
self
.
selector
)
data
=
"""<p><span class="{}">Annotate this!</span></p>"""
.
format
(
self
.
selector
)
),
),
),
...
...
@@ -74,7 +74,7 @@ class EdxNotesTestMixin(UniqueCourseTest):
"html"
,
"Test HTML 4"
,
data
=
"""
<p><span class="{}">Annotate this
text
!</span></p>
<p><span class="{}">Annotate this!</span></p>
"""
.
format
(
self
.
selector
)
),
),
...
...
@@ -87,13 +87,13 @@ class EdxNotesTestMixin(UniqueCourseTest):
"html"
,
"Test HTML 5"
,
data
=
"""
<p><span class="{}">Annotate this
text
!</span></p>
<p><span class="{}">Annotate this!</span></p>
"""
.
format
(
self
.
selector
)
),
XBlockFixtureDesc
(
"html"
,
"Test HTML 6"
,
data
=
"""<p><span class="{}">Annotate this
text
!</span></p>"""
.
format
(
self
.
selector
)
data
=
"""<p><span class="{}">Annotate this!</span></p>"""
.
format
(
self
.
selector
)
),
),
),
...
...
@@ -358,7 +358,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"First note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2011
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
),
Note
(
...
...
@@ -366,7 +366,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
""
,
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
updated
=
datetime
(
2012
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
tags
=
[
"Review"
,
"cool"
]
if
tags
is
None
else
tags
),
...
...
@@ -375,7 +375,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Third note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2013
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
18
)],
tags
=
[
"Cool"
,
"TODO"
]
if
tags
is
None
else
tags
...
...
@@ -394,7 +394,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Fifth note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2015
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
()
),
]
...
...
@@ -498,7 +498,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
...
@@ -514,7 +514,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
2
],
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
...
@@ -523,7 +523,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
3
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
...
...
@@ -531,7 +531,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
4
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
...
@@ -573,7 +573,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
...
@@ -581,7 +581,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
1
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
...
@@ -590,7 +590,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
2
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
...
...
@@ -624,7 +624,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
4
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
...
@@ -658,7 +658,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
...
@@ -667,7 +667,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
1
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
...
...
@@ -690,7 +690,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
3
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
...
...
@@ -705,7 +705,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
4
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
...
@@ -721,7 +721,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
5
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
...
@@ -729,7 +729,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
6
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
...
@@ -816,7 +816,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
...
@@ -832,7 +832,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
2
],
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
...
@@ -841,7 +841,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
notes
[
3
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
...
@@ -967,27 +967,27 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Third note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2012
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
1
9
)],
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
1
4
)],
),
Note
(
usage_id
=
xblocks
[
2
]
.
locator
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Second note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2013
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
1
9
)],
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
1
4
)],
),
Note
(
usage_id
=
xblocks
[
0
]
.
locator
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"First note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2014
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
1
9
)],
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
1
4
)],
),
])
self
.
notes_page
.
visit
()
...
...
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