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
ea4b9c0d
Commit
ea4b9c0d
authored
Aug 22, 2012
by
Mark L. Chang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mchang/acceptance-testing' of github.com:MITx/mitx into mchang/acceptance-testing
parents
c2cb3ce6
0c76ecad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
lms/djangoapps/acceptance_testing/features/wiki-bugs.feature
+25
-0
lms/djangoapps/acceptance_testing/features/wiki-bugs.py
+24
-0
No files found.
lms/djangoapps/acceptance_testing/features/wiki-bugs.feature
0 → 100644
View file @
ea4b9c0d
Feature
:
There are bugs on the wiki
In order to see if bugs are fixed
As a developer
I want to test known bad pages to see if they render properly
Scenario
:
Login to an existing account
Given I visit "http
:
//anant
:
agarwal
@stage-edx-001.m.edx.org/"
When
I click
"LOG IN"
And
I login with
"ddieker+admin@gmail.com"
in the
"email"
field
And
I login with
"password"
in the
"password"
field
And
I press
"Access My Courses"
Then
I should see an element with class of
"user"
within
"3"
seconds
Scenario
:
See all children when there are children crashes
Given I visit "http
:
//stage-edx-001.m.edx.org/courses/MITx/6.002x/2012_Fall/wiki/6.002x/"
And
I click
"See all children"
And
I click on a child
Then
I should not get a server error
Scenario
:
See All Children when there are no children crashes
Given I visit "http
:
//stage-edx-001.m.edx.org/courses/BerkeleyX/CS188.1x/2012_Fall/wiki/CS188.1x/"
And
I click
"See all children"
Then
I should not get a server error
\ No newline at end of file
lms/djangoapps/acceptance_testing/features/wiki-bugs.py
0 → 100644
View file @
ea4b9c0d
from
lettuce
import
*
#before, world
from
selenium
import
*
import
lettuce_webdriver.webdriver
from
selenium.webdriver
import
ActionChains
from
selenium.webdriver.support.ui
import
WebDriverWait
import
re
import
os.path
import
sys
path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'static'
))
if
not
path
in
sys
.
path
:
sys
.
path
.
insert
(
1
,
path
)
del
path
from
helpers
import
*
@step
(
u'And I click on a child'
)
def
and_i_click_on_a_child
(
step
):
world
.
browser
.
find_element_by_xpath
(
"//table//tbody//tr[2]//td//a"
)
.
click
()
@step
(
u'Then I should not get a server error'
)
def
then_i_should_not_get_a_server_error
(
step
):
wait_until_class_renders
(
'global slim'
,
2
)
check_for_errors
()
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