|
1 | 1 | // test if the register is working against a running back-end |
2 | | -xdescribe('e2e: register', function() { |
| 2 | +describe( 'e2e: register', function() { |
3 | 3 |
|
4 | 4 | var ptor; |
5 | 5 | beforeEach(function() { |
6 | 6 | ptor = protractor.getInstance(); |
7 | | - ptor.get('/register'); |
| 7 | + ptor.get( '/register' ); |
8 | 8 | }); |
9 | 9 |
|
10 | | - it('should login with the default user account', function() { |
11 | | - var email = element(by.model('credentials.username')); |
12 | | - var password = element(by.model('credentials.password')); |
13 | | - var passwordConfirmation = element(by.model('credentials.passwordConfirmation')); |
| 10 | + it( 'should login with the default user account', function() { |
| 11 | + var email = element( by.model( 'credentials.email' ) ); |
| 12 | + var password = element( by.model( 'credentials.password' ) ); |
| 13 | + var passwordConfirmation = element( by.model( 'credentials.passwordConfirmation' ) ); |
14 | 14 |
|
15 | | - username.sendKeys('user1234'); |
16 | | - password.sendKeys('1234'); |
17 | | - passwordConfirmation.sendKeys('1234'); |
18 | | - ptor.findElement(protractor.By.css('button[type="submit"]')).click(); |
| 15 | + email.sendKeys( 'user1234@email.com' ); |
| 16 | + password.sendKeys( '1234' ); |
| 17 | + passwordConfirmation.sendKeys( '1234' ); |
| 18 | + |
| 19 | + ptor.findElement( protractor.By.css( 'button[type="submit"]' ) ).click(); |
19 | 20 |
|
20 | | - expect(ptor.findElement(protractor.By.tagName('h1')).getText()) |
21 | | - .toEqual('Users'); |
| 21 | + expect( ptor.findElement( protractor.By.tagName( 'h1' ) ).getText() ) |
| 22 | + .toEqual( 'Users' ); |
22 | 23 |
|
23 | 24 | }); |
24 | 25 |
|
|
0 commit comments