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
9f645441
Commit
9f645441
authored
Sep 23, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests for changed text
parent
c0a25da9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
common/test/acceptance/pages/lms/dashboard.py
+2
-2
common/test/acceptance/tests/test_lms.py
+6
-6
No files found.
common/test/acceptance/pages/lms/dashboard.py
View file @
9f645441
...
...
@@ -20,8 +20,8 @@ class DashboardPage(PageObject):
return
self
.
q
(
css
=
'section.my-courses'
)
.
present
@property
def
c
urrent_c
ourses_text
(
self
):
text_items
=
self
.
q
(
css
=
'section#my-courses'
)
.
text
def
courses_text
(
self
):
text_items
=
self
.
q
(
css
=
'section#my-courses
span.my-courses-title-label
'
)
.
text
if
len
(
text_items
)
>
0
:
return
text_items
[
0
]
else
:
...
...
common/test/acceptance/tests/test_lms.py
View file @
9f645441
...
...
@@ -77,10 +77,10 @@ class LanguageTest(UniqueCourseTest):
self
.
dashboard_page
=
DashboardPage
(
self
.
browser
)
self
.
test_new_lang
=
'eo'
# This string is unicode for "Ç
ÜRRÉNT Ç
ØÜRSÉS", which should appear in our Dummy Esperanto page
# This string is unicode for "ÇØÜRSÉS", which should appear in our Dummy Esperanto page
# We store the string this way because Selenium seems to try and read in strings from
# the HTML in this format. Ideally we could just store the raw ÇÜRRÉNT ÇØÜRSÉS string here
self
.
c
urrent_courses_text
=
u'
\xc7\xdc
RR
\xc9
NT
\xc7\xd6\xdc
RS
\xc9
S'
self
.
c
ourses_text
=
u'
\xc7\xd6\xdc
RS
\xc9
S'
self
.
username
=
"test"
self
.
password
=
"testpass"
...
...
@@ -92,10 +92,10 @@ class LanguageTest(UniqueCourseTest):
# Change language to Dummy Esperanto
self
.
dashboard_page
.
change_language
(
self
.
test_new_lang
)
changed_text
=
self
.
dashboard_page
.
c
urrent_c
ourses_text
changed_text
=
self
.
dashboard_page
.
courses_text
# We should see the dummy-language text on the page
self
.
assertIn
(
self
.
c
urrent_c
ourses_text
,
changed_text
)
self
.
assertIn
(
self
.
courses_text
,
changed_text
)
def
test_language_persists
(
self
):
auto_auth_page
=
AutoAuthPage
(
self
.
browser
,
username
=
self
.
username
,
password
=
self
.
password
,
email
=
self
.
email
,
course_id
=
self
.
course_id
)
...
...
@@ -113,10 +113,10 @@ class LanguageTest(UniqueCourseTest):
self
.
dashboard_page
.
visit
()
changed_text
=
self
.
dashboard_page
.
c
urrent_c
ourses_text
changed_text
=
self
.
dashboard_page
.
courses_text
# We should see the dummy-language text on the page
self
.
assertIn
(
self
.
c
urrent_c
ourses_text
,
changed_text
)
self
.
assertIn
(
self
.
courses_text
,
changed_text
)
class
HighLevelTabTest
(
UniqueCourseTest
):
...
...
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