JonahStanley
477f29d5ee
Added docstring specifying when this method must be called
2013-06-06 14:52:35 -04:00
JonahStanley
d226a21eb0
Changed wording to I will
2013-06-05 16:01:45 -04:00
JonahStanley
f652a5d8c4
Small wording fix
2013-06-05 15:57:42 -04:00
JonahStanley
260659cfc6
Fixed wording in the step
2013-06-05 15:56:45 -04:00
JonahStanley
acc743eea8
Added functionality to bypass alerts
...
This is done with the following steps:
'I confirm all alerts' means that all alert and confirm windows are returned and returned true respectively
'I dismiss all alerts' means that all confirm windows are returned false
'I answer all prompts with "([^"]*)"' means that all prompts are returned with the given string
Please note that these settings are on a PER PAGE basis. This means that for best results, the step must be given right before the alert is generated.
2013-06-05 15:08:58 -04:00
Jay Zoldak
59b26a791b
Turn off automatic snapshot to tmp dir on lettuce failure
2013-06-04 15:09:44 -04:00
JonahStanley
a17c487f16
Merged from Master
2013-06-03 09:46:19 -04:00
JonahStanley
286fcece4a
Fixed issue of searching for text
...
Now the step calls is_text_present and is_text_not_present with a wait time of 5 seconds so that the page can be properly refreshed/reloaded if needed.
This also gets rid of an assert not
2013-05-31 15:33:56 -04:00
JonahStanley
cb9da2cd03
Potentially fixed all flakey tests
...
New function was added: is_css_not_present
This function works like is_css_present in that it will wait and can take in an optional argument to wait longer. This should be used everywhere INSTEAD of not is_css_present as in the latter case, you are telling selenium to wait for the thing you don't want to be there to either be there or time out.
2013-05-31 15:16:45 -04:00
JonahStanley
3308bb4be7
Fixed pull request comments and refactored the duplicate code
2013-05-31 14:53:29 -04:00
Jay Zoldak
86afe7279b
Refactor user factory usage for lettuce tests. Fix merge conflict.
2013-05-30 13:48:07 -04:00
Jay Zoldak
6627ca5635
Tidy up the new lettuce tests for metadata editing a bit.
2013-05-30 12:26:18 -04:00
David Baumgold
cf1e906c13
Fix lettuce tests
2013-05-23 12:50:19 -04:00
Will Daly
bab4b18647
Set the browser size on startup of acceptance tests.
...
This resolves an issue on Mac OS X in which the login dropdown
arrow couldn't be clicked because it was off-screen.
It should make the test suite more stable.
2013-05-17 17:21:44 -04:00
Diana Huang
b6c0081064
Look for the existence of the links, not for
...
the actual urls
2013-05-16 16:30:29 -04:00
Diana Huang
22cf0dfa97
Fix bug in lettuce tests where the unregister dialog wasn't
...
getting closed fast enough.
2013-05-16 16:30:29 -04:00
Will Daly
1e1e6450df
Pep8 fixes
2013-05-16 11:33:50 -04:00
Will Daly
8e069c1faa
Skip tests that break on Ubuntu due to alerts (which will be removed
...
soon anyway). Removed @skip-phantom and @skip-firefox tags
Fixed sign up test to work in Ubuntu
Added comments
2013-05-15 09:39:07 -04:00
Will Daly
ee5f0ac0ce
Workaround for Ubuntu ChromeDriver issue. Now retries
...
until it acquires a valid session.
2013-05-15 08:24:27 -04:00
Will Daly
9dbcf0baa4
Updated login session handling to fix issue with ChromeDriver on Ubuntu
2013-05-14 14:47:50 -04:00
Will Daly
2e0b5b24d8
Pylint and pep8 fixes
2013-05-13 15:21:45 -04:00
Will Daly
d1e35b14bb
Merge branch 'master' into feature/will/ci-lettuce-tests
2013-05-13 14:08:06 -04:00
Will Daly
c730d43dbf
Resolved import conflict involving django-staticfiles
...
(lettuce assumes we are using django.contrib.staticfiles).
This allows us to run the django-admin.py harvest test server,
instead of launching the server ourselves.
2013-05-10 09:18:37 -04:00
Calen Pennington
ea859bd6c7
Filter out the template course from the mongo modulestore get_courses function
2013-05-09 16:22:23 -04:00
Jay Zoldak
8a852f90cb
Fix or skip lettuce tests to run under phantomjs and firefox
2013-04-18 10:18:35 -04:00
Jay Zoldak
8a2d08bbd6
Refactor choosing the browser for lettuce tests to settings.py
2013-04-18 10:18:35 -04:00
Jay Zoldak
c9add70a75
Fix some pylint errors in the lettuce terrain module
2013-04-03 13:01:42 -04:00
Will Daly
0500ba4dd5
Disabled pylint warnings for lettuce steps:
...
* Missing docstring
* Redefining name from outer scope
2013-03-26 11:46:31 -04:00
Will Daly
27d5ebf027
pep8 fixes
2013-03-26 11:44:57 -04:00
Will Daly
00d25b684c
Moved modulestore flush code into terrain/course_helpers
2013-03-26 11:44:57 -04:00
Will Daly
e69931ec5a
Refactored studio lettuce tests to use terrain/ui_helpers for ui
...
manipulation
2013-03-26 11:44:56 -04:00
Will Daly
dde0d1676b
Refactored terrain/steps.py to use ui_helpers
...
Added a wait time before checking the page HTML,
and changed it to check just in the HTML body
2013-03-26 11:44:56 -04:00
Will Daly
4528490fac
Refactored lms/coureware lettuce tests to use terrain helpers
...
for common ui manipulations
2013-03-26 11:44:56 -04:00
Will Daly
6dd86f7a97
Refactored courseware_common and open_ended to use ui helpers
2013-03-26 11:44:56 -04:00
Will Daly
c12e1fb1ce
Added missing import statement
2013-03-26 11:44:56 -04:00
Will Daly
b0eb73302b
Moved some courseware/features/common.py steps into
...
terrain/steps.py
2013-03-26 11:44:56 -04:00
Will Daly
0562f11c56
Fixed import issue with WebDriverException
2013-03-26 11:44:56 -04:00
Will Daly
e494d529fc
Split terrain/helpers.py into ui_helpers.py and course_helpers.py
2013-03-26 11:44:56 -04:00
Will Daly
315b360e4c
Fixed an import error in terrain/helpers.py
2013-03-26 11:44:55 -04:00
Will Daly
24301d2a07
Moved helper functions from terrain/steps.py to terrain/helpers.py
2013-03-26 11:44:55 -04:00
Don Mitchell
2dcfd1eba1
Merge pull request #1719 from MITx/feature/btalbot/studio-checklists
...
Add course checklists to Studio
2013-03-22 12:49:30 -07:00
cahrens
a2a1478d92
Fix caching bug on back button.
2013-03-22 09:51:45 -04:00
Will Daly
6728f16ae4
Merge branch 'feature/zoldak/refactor-factories' into feature/will/speed_up_lettuce_tests
...
Conflicts:
lms/djangoapps/courseware/features/problems.py
2013-03-21 10:49:04 -04:00
Will Daly
7a282a9c54
Edited comments, ran pep8
2013-03-20 17:08:19 -04:00
Will Daly
f69778b367
Changed lettuce test log_in step to log in programatically
...
rather than using the login dialog.
2013-03-20 17:08:19 -04:00
Jay Zoldak
23364d8b0f
Merge branch 'master' into feature/zoldak/refactor-factories
2013-03-20 13:36:01 -04:00
Jay Zoldak
5eba299dca
Move course and item factories to xmodule.modulestore.tests
2013-03-20 12:10:18 -04:00
Jay Zoldak
192b991334
Pylint for lettuce factory refactor.
2013-03-20 11:52:15 -04:00
Jay Zoldak
6048bc2832
Pep8 fixes for factory refactor
2013-03-20 11:31:12 -04:00
Will Daly
5411fc765e
Refactored lettuce test of capa problems to use
...
world.css_click() helper instead of directly
calling splinter.
2013-03-20 11:27:28 -04:00