Skip to content

Instantly share code, notes, and snippets.

@ckzgraphics
Created July 17, 2019 17:02
Show Gist options
  • Save ckzgraphics/5857de09308617c0e380e99528ddaed1 to your computer and use it in GitHub Desktop.
Save ckzgraphics/5857de09308617c0e380e99528ddaed1 to your computer and use it in GitHub Desktop.
TestCafe_Slow_StartUp_Issue_Gist
import { Selector } from 'testcafe';
console.log("= = = = = = STARTING TEST :: " + Date.now());
fixture `Simple_Fixture`
.page `https://the-internet.herokuapp.com/login`;
test('Test_Login', async t => {
console.log("= = = = = = TEST :: Test_Login :: START :: " + Date.now());
await t
.typeText(Selector('#username'), 'Hello')
.typeText(Selector('#password'), 'User')
.click(Selector('i').withText('Login'))
.drag(Selector('#flash'), -191, -4, {
offsetX: 200,
offsetY: 14
});
console.log("= = = = = = TEST :: Test_Login :: END :: " + Date.now());
});
test('Test_Checkbox', async t => {
console.log("= = = = = = TEST :: Test_Checkbox :: START :: " + Date.now());
await t
.navigateTo('https://the-internet.herokuapp.com/checkboxes')
.click(Selector('#checkboxes>input'));
console.log("= = = = = = TEST :: Test_Checkbox :: END :: " + Date.now());
});
console.log("= = = = = = FILE END :: " + Date.now());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment