Skip to content

Instantly share code, notes, and snippets.

@VasilyStrelyaev
Created July 24, 2017 08:27
Show Gist options
  • Save VasilyStrelyaev/5ef712f08d77227c99349226907f29ce to your computer and use it in GitHub Desktop.
Save VasilyStrelyaev/5ef712f08d77227c99349226907f29ce to your computer and use it in GitHub Desktop.
fixture `My fixture`
.page `http://example.com`
.httpAuth({
username: 'username',
password: 'Pa$$word',
// Optional parameters, can be required for the NTLM authentication.
domain: 'CORP-DOMAIN',
workstation: 'machine-win10'
});
test('Test1', async t => { /* test actions */ } // Logs in as username
test // Logs in as differentUserName
.httpAuth({
username: 'differentUserName',
password: 'differentPa$$word'
})
('Test2', async t => { /* test actions */ });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment