Skip to content

Instantly share code, notes, and snippets.

@bfncs
Created November 4, 2016 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfncs/3576ae363bbec90eef94cf290c213c9a to your computer and use it in GitHub Desktop.
Save bfncs/3576ae363bbec90eef94cf290c213c9a to your computer and use it in GitHub Desktop.
Login Web Testcafe

E2E-Tests für login-web mit testcafe

Failt leider rum…

{
"name": "login-web-tests",
"version": "0.0.1",
"scripts": {
"start": "testcafe chrome ./test-*.js"
},
"dependencies": {
"testcafe": "^0.9.0"
}
}
fixture `Login`
.page `https://login.dev.sipgate.com/`;
const credentials = {
email: "goBehaviourTestsNichtLoeschen+Jvarpu@sipgate.de",
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