This message was deleted.
# general
m
This message was deleted.
m
Hello @white-branch-2953 Maybe the tests in our documentation help give you some pointers: https://github.com/ory/docs/tree/master/tests I would recommend playwright, its been good to us.
w
Copy code
const login = async (page: Page) => {
  const email = randomEmail()
  await page.fill('[name="traits.email"]', email)
  await page.fill('[name="password"]', randomString())
  await page.click('[value="password"]')
  return email
}
Hmm, I see here you are testing by setting a random email/password to login. We need to have a premade test account e.g.
<mailto:test_user@gmail.com|test_user@gmail.com>
that we can login to. Reason for this is the test account needs to have a specific setup and funds to test our payment functionality
m
Makes sense. hardcoding the email and password would also work, right?