Can you help me fix the issue with my createUser() function? Why am I unable to pass parameters in Smoke.ts?
Login.ts :
interface User {
url: string,
email: string,
}
class Test{
async createUser(user: User) {
await Page.setUrl(user.url);
await Page.setEmail(user.email);
}
}
Smoke.ts
test("Smoke Test", async (t) => {
console.log("Starting test");
await Login.createUser(
"google.com","joe"
);
The error message reads: Expected 1 arguments, but got 2.