forked from ProtonMail/WebClients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor_conf.js
88 lines (82 loc) · 4.13 KB
/
protractor_conf.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// An example configuration file.
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub', // Where to talk to the Selenium Server instance that is running on your machine. This can be verified by checking the logs in the terminal window that is running the server.
getPageTimeout: 60000, // Time to wait for the page to load
allScriptsTimeout: 500000, // Time to wait for page to synchronize. More information on timeouts can be found in Protractor’s
baseUrl: 'http://localhost:8080', // Main URL to hit for testing. This is helpful if there is only one, root URL.
framework: 'jasmine', // Where you specify the type of framework to use with Protractor
directConnect: true,
// Capabilities to be passed to the webdriver instance.
multiCapabilities: [
// {browserName: 'firefox'},
{
browserName: 'chrome',
}
],
// The params object will be passed directly to the Protractor instance,
// and can be accessed from your test as browser.params. It is an arbitrary
// object and can contain anything you may need in your test.
// This can be changed via the command line as:
// --params.login.user "Joe"
params: {
login: 'qatest123',
sleep: 2000,
contact: {
create: {
name: 'qatest1',
email: 'qatest1@protonmail.com'
},
update: {
name: 'qatest2',
email: 'qatest2@protonmail.com'
}
}
// contactName: 'qatest1',
// contactEmail: 'qatest1@protonmail.com',
// editedName: 'qatest2',
// editedEmail: 'qatest2@protonmail.com',
// login: 'qatest1',
// password1: 'qatest1',
// password2: 'qatest1',
// sleep: 2000
},
// Ensure angular is completely loaded
onPrepare() {
browser.driver.get(browser.baseUrl);
global.EC = protractor.ExpectedConditions;
},
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: [
'test/e2e/login/login.spec.js',
'test/e2e/unlock/unlock.spec.js',
'test/e2e/stars/stars.spec.js',
'test/e2e/contact/contact.spec.js',
'test/e2e/bugreport/bugreport.spec.js',
'test/e2e/composer/composer.spec.js',
'test/e2e/logout/logout.spec.js'
],
files: [
'vendor/angular/angular.js',
'vendor/bower-angular-mocks/angular-mocks.js'
],
// Alternatively, suites may be used. When run without a command line
// parameter, all suites will run. If run with --suite=smoke or
// --suite=smoke,full only the patterns matched by the specified suites will
// run.
suites: {
contact: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/contact/contact.spec.js'],
login: 'test/e2e/login/login.spec.js',
logout: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/logout/logout.spec.js'],
unlock: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/unlock.spec.js'],
bugreport: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/bugReport/bugreport.spec.js'],
stars: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/stars/stars.spec.js'],
composer: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/composer/composer.spec.js'],
conversation: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/conversation/conversation.spec.js'],
message: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/message/message.spec.js'],
search: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/search/search.spec.js'],
autoresponder: ['test/e2e/autoresponder/autoresponder.spec.js'],
labels: ['test/e2e/login/straightLogin.spec.js', 'test/e2e/unlock/straightUnlock.spec.js', 'test/e2e/label/label.spec.js'],
signup: ['test/e2e/signup/signup.spec.js']
}
};