blob: 69fdc10e90b97062c0caaf5a0cee81bb33db206a (
plain)
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
|
describe('widgets', function() {
it('should verify that basic widgets work', function(){
navigateTo('widgets.html');
input('text.basic').enter('Carlos');
expect(binding('text.basic')).toEqual('Carlos');
pause(2);
input('text.basic').enter('Carlos Santana');
pause(2);
expect(binding('text.basic')).not().toEqual('Carlos Boozer');
pause(2);
input('text.password').enter('secret');
expect(binding('text.password')).toEqual('secret');
expect(binding('text.hidden')).toEqual('hiddenValue');
expect(binding('gender')).toEqual('male');
pause(2);
input('gender').select('female');
expect(binding('gender')).toEqual('female');
pause(2);
});
describe('do it again', function() {
it('should verify that basic widgets work', function(){
navigateTo('widgets.html');
input('text.basic').enter('Carlos');
expect(binding('text.basic')).toEqual('Carlos');
pause(2);
input('text.basic').enter('Carlos Santana');
pause(2);
expect(binding('text.basic')).toEqual('Carlos Santana');
pause(2);
input('text.password').enter('secret');
expect(binding('text.password')).toEqual('secret');
expect(binding('text.hidden')).toEqual('hiddenValue');
expect(binding('gender')).toEqual('male');
pause(2);
input('gender').select('female');
expect(binding('gender')).toEqual('female');
pause(2);
});
});
it('should verify that basic widgets work', function(){
navigateTo('widgets.html');
input('text.basic').enter('Carlos');
expect(binding('text.basic')).toEqual('Carlos');
pause(2);
input('text.basic').enter('Carlos Santana');
pause(2);
expect(binding('text.basic')).toEqual('Carlos Santana');
pause(2);
input('text.password').enter('secret');
expect(binding('text.password')).toEqual('secret');
expect(binding('text.hidden')).toEqual('hiddenValue');
expect(binding('gender')).toEqual('male');
pause(2);
input('gender').select('female');
expect(binding('gender')).toEqual('female');
pause(2);
});
});
|