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
Show 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):
...
@@ -50,21 +50,21 @@ class EdxNotesTestMixin(UniqueCourseTest):
"html"
,
"html"
,
"Test HTML 1"
,
"Test HTML 1"
,
data
=
"""
data
=
"""
<p><span class="{}">Annotate this
text
!</span></p>
<p><span class="{}">Annotate this!</span></p>
<p>Annotate this
text
</p>
<p>Annotate this</p>
"""
.
format
(
self
.
selector
)
"""
.
format
(
self
.
selector
)
),
),
XBlockFixtureDesc
(
XBlockFixtureDesc
(
"html"
,
"html"
,
"Test HTML 2"
,
"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
(
"vertical"
,
"Test Unit 2"
)
.
add_children
(
XBlockFixtureDesc
(
XBlockFixtureDesc
(
"html"
,
"html"
,
"Test HTML 3"
,
"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):
...
@@ -74,7 +74,7 @@ class EdxNotesTestMixin(UniqueCourseTest):
"html"
,
"html"
,
"Test HTML 4"
,
"Test HTML 4"
,
data
=
"""
data
=
"""
<p><span class="{}">Annotate this
text
!</span></p>
<p><span class="{}">Annotate this!</span></p>
"""
.
format
(
self
.
selector
)
"""
.
format
(
self
.
selector
)
),
),
),
),
...
@@ -87,13 +87,13 @@ class EdxNotesTestMixin(UniqueCourseTest):
...
@@ -87,13 +87,13 @@ class EdxNotesTestMixin(UniqueCourseTest):
"html"
,
"html"
,
"Test HTML 5"
,
"Test HTML 5"
,
data
=
"""
data
=
"""
<p><span class="{}">Annotate this
text
!</span></p>
<p><span class="{}">Annotate this!</span></p>
"""
.
format
(
self
.
selector
)
"""
.
format
(
self
.
selector
)
),
),
XBlockFixtureDesc
(
XBlockFixtureDesc
(
"html"
,
"html"
,
"Test HTML 6"
,
"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):
...
@@ -358,7 +358,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"First note"
,
text
=
"First note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2011
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
updated
=
datetime
(
2011
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
),
),
Note
(
Note
(
...
@@ -366,7 +366,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -366,7 +366,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
""
,
text
=
""
,
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
updated
=
datetime
(
2012
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
updated
=
datetime
(
2012
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
tags
=
[
"Review"
,
"cool"
]
if
tags
is
None
else
tags
tags
=
[
"Review"
,
"cool"
]
if
tags
is
None
else
tags
),
),
...
@@ -375,7 +375,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -375,7 +375,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Third note"
,
text
=
"Third note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2013
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
updated
=
datetime
(
2013
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
18
)],
ranges
=
[
Range
(
startOffset
=
0
,
endOffset
=
18
)],
tags
=
[
"Cool"
,
"TODO"
]
if
tags
is
None
else
tags
tags
=
[
"Cool"
,
"TODO"
]
if
tags
is
None
else
tags
...
@@ -394,7 +394,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -394,7 +394,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Fifth note"
,
text
=
"Fifth note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2015
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
()
updated
=
datetime
(
2015
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
()
),
),
]
]
...
@@ -498,7 +498,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -498,7 +498,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
0
],
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
@@ -514,7 +514,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -514,7 +514,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
2
],
notes
[
2
],
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
text
=
u"Third note"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
@@ -523,7 +523,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -523,7 +523,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
3
],
notes
[
3
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
tags
=
[
"Review"
,
"cool"
]
...
@@ -531,7 +531,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -531,7 +531,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
4
],
notes
[
4
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
@@ -573,7 +573,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -573,7 +573,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
0
],
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
@@ -581,7 +581,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -581,7 +581,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
1
],
notes
[
1
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Third note"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
@@ -590,7 +590,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -590,7 +590,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
2
],
notes
[
2
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
tags
=
[
"Review"
,
"cool"
]
...
@@ -624,7 +624,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -624,7 +624,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
4
],
notes
[
4
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
@@ -658,7 +658,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -658,7 +658,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
0
],
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Third note"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
@@ -667,7 +667,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -667,7 +667,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
1
],
notes
[
1
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
tags
=
[
"Review"
,
"cool"
]
...
@@ -690,7 +690,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -690,7 +690,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
3
],
notes
[
3
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
unit_name
=
"Test Unit 2"
,
unit_name
=
"Test Unit 2"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2012 at 01:01 UTC"
,
tags
=
[
"Review"
,
"cool"
]
tags
=
[
"Review"
,
"cool"
]
...
@@ -705,7 +705,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -705,7 +705,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
4
],
notes
[
4
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Third note"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
@@ -721,7 +721,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -721,7 +721,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
5
],
notes
[
5
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
@@ -729,7 +729,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -729,7 +729,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
6
],
notes
[
6
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
@@ -816,7 +816,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -816,7 +816,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
0
],
notes
[
0
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"Fifth note"
,
text
=
u"Fifth note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
time_updated
=
"Jan 01, 2015 at 01:01 UTC"
...
@@ -832,7 +832,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -832,7 +832,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
2
],
notes
[
2
],
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
text
=
u"Third note"
,
text
=
u"Third note"
,
unit_name
=
"Test Unit 1"
,
unit_name
=
"Test Unit 1"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
time_updated
=
"Jan 01, 2013 at 01:01 UTC"
,
...
@@ -841,7 +841,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -841,7 +841,7 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self
.
assertNoteContent
(
self
.
assertNoteContent
(
notes
[
3
],
notes
[
3
],
quote
=
u"Annotate this
text
"
,
quote
=
u"Annotate this"
,
text
=
u"First note"
,
text
=
u"First note"
,
unit_name
=
"Test Unit 4"
,
unit_name
=
"Test Unit 4"
,
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
time_updated
=
"Jan 01, 2011 at 01:01 UTC"
...
@@ -967,27 +967,27 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
...
@@ -967,27 +967,27 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Third note"
,
text
=
"Third note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2012
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
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
(
Note
(
usage_id
=
xblocks
[
2
]
.
locator
,
usage_id
=
xblocks
[
2
]
.
locator
,
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"Second note"
,
text
=
"Second note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2013
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
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
(
Note
(
usage_id
=
xblocks
[
0
]
.
locator
,
usage_id
=
xblocks
[
0
]
.
locator
,
user
=
self
.
username
,
user
=
self
.
username
,
course_id
=
self
.
course_fixture
.
_course_key
,
course_id
=
self
.
course_fixture
.
_course_key
,
text
=
"First note"
,
text
=
"First note"
,
quote
=
"Annotate this
text
"
,
quote
=
"Annotate this"
,
updated
=
datetime
(
2014
,
1
,
1
,
1
,
1
,
1
,
1
)
.
isoformat
(),
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
()
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