Commit ea4b9c0d by Mark L. Chang

Merge branch 'mchang/acceptance-testing' of github.com:MITx/mitx into mchang/acceptance-testing

parents c2cb3ce6 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
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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment