-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.js
42 lines (31 loc) · 1.19 KB
/
spec.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
describe('Protractor Demo App', function() {
beforeEach(function() {
/* browser.ignoreSynchronization = true;*/
browser.get('http://127.0.0.1:8080/#/');
});
it('should change model', function () {
element(by.model('ctrl.name')).sendKeys('Hello world');
expect( element(by.binding('ctrl.name')).getText()).toEqual('ZhekaHello world')
});
/*it('shold play music', function () {
element(by.id('email')).sendKeys('zheka_1408@mail.ru');
element(by.id('pass')).sendKeys('136661408FackYou2');
element(by.id('login_button')).click();
/!*element(by.id('play_77243040_456239048')).click()*!/
browser.wait(function() {
return browser.isElementPresent(by.id('play_77243040_456239048'));
});
for(var i =0; i<5; i++){
element(by.id('l_pr')).click();
browser.wait(function() {
return browser.isElementPresent(by.id('post_field'));
});
element(by.id('post_field')).sendKeys('Hello from robot');
element(by.id('send_post')).click();
}
browser.wait(function() {
return false;
});
})
*/
});