Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('Test1', async() => {
await t
.useRole(someUser)
.expect(userName.textContent).eql('SomeUser')
.useRole(Role.anonymous())
.expect(userName.textContent).eql('');
});
test('Test1', async() => {
await t
.useRole(someUser)
.expect(userName.textContent).eql('SomeUser')
.useRole(Role.anonymous())
.expect(userName.textContent).eql('');
})