-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.py
42 lines (33 loc) · 1.28 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""
Configuration for smokescreen testing
"""
driver_name = 'Firefox'
# Default time for WebDriver.implicitly_wait
selenium_wait_time = 5
# Domain to use for all tests.
osf_home = 'http://localhost:5000'
# make sure there is no trailing slash.
osf_home = osf_home.rstrip('/')
# raise an exception if the root domain is production.
if '/openscienceframework.org' in osf_home:
raise Exception(
'OSF UI tests should *never* be run against production. '
'(A large number of database entries and files are generated '
'during testing.)'
)
# Test project data
project_title = 'test project'
project_description = 'test project description'
node_title = 'test node'
open_ended_registration_data = {
'div#registration_template textarea' : 'test registration',
'div.container form input[type=text].ember-text-field' : 'continue',
}
osf_standard_registration_data = {
# The first select on the form
'#registration_template div.control-group:first-child select' : 'Yes',
# The second select on the form (immediate sibling of the first select)
'#registration_template div.control-group:first-child + div.control-group select' : 'No',
'#registration_template textarea' : 'None',
'div.container form input[type=text].ember-text-field' : 'continue',
}