Skip to content

Instantly share code, notes, and snippets.

@bfncs
Created November 4, 2016 11:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Login Web Testcafe
{
"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