Skip to content

Instantly share code, notes, and snippets.

@marcelblijleven
Last active October 11, 2019 11:11
Show Gist options
  • Save marcelblijleven/fde1bd7faf63a3ec0813aad5a2051eae to your computer and use it in GitHub Desktop.
Save marcelblijleven/fde1bd7faf63a3ec0813aad5a2051eae to your computer and use it in GitHub Desktop.
Users
class User {
email:string
password:string
hasLoyaltyCard: boolean
constructor(email:string, password:string, hasLoyaltyCard?:boolean) {
this.email = email
this.password = password
this.hasLoyaltyCard = !!hasLoyaltyCard
}
}
// Getting the password from an environment variable
const userPassword = process.env.CUSTOMER_PASSWORD || ''
const users = [
new User('automation-user+036ee3e@company.nl', userPassword, false),
new User('automation-user+a8b0f27@company.nl', userPassword, false),
new User('automation-user+0aad224@company.nl', userPassword, false),
new User('automation-user+aa53d15@company.nl', userPassword, true),
new User('automation-user+6469fd4@company.nl', userPassword, true),
new User('automation-user+0ba9fe1@company.nl', userPassword, true)
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment