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
0c76ecad
Commit
0c76ecad
authored
Aug 22, 2012
by
Dean Dieker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tests to check for solves for wiki bugs
parent
9adcdf8e
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 @
0c76ecad
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 @
0c76ecad
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