Failt leider rum…
Created
November 4, 2016 11:09
-
-
Save bfncs/3576ae363bbec90eef94cf290c213c9a to your computer and use it in GitHub Desktop.
Login Web Testcafe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "login-web-tests", | |
"version": "0.0.1", | |
"scripts": { | |
"start": "testcafe chrome ./test-*.js" | |
}, | |
"dependencies": { | |
"testcafe": "^0.9.0" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fixture `Login` | |
.page `https://login.dev.sipgate.com/`; | |
const credentials = { | |
email: "[email protected]", | |
masterSipId: "2420529", | |
password: "12345678" | |
}; | |
test('Log in to basic', async t => { | |
await t | |
.wait(5000) | |
.typeText('input[name="username"]', credentials.masterSipId) | |
.typeText('input[name="password"]', credentials.password) | |
.click('button[type="submit"]') | |
.wait(60000) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment