-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: playwright setup first step #10
base: develop
Are you sure you want to change the base?
Conversation
.getByLabel(/(passwort\s?wiederholen|repeat\s?password)/i) | ||
.fill(password!); | ||
await page | ||
.getByLabel(/Ich habe die Datenschutzerklä|I have the Privacy policy/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check on what you are checking. Someone can change the texts in Weblate which will then result in failing tests and development work needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not recommend using .getByLabel in our setup
const username = process.env.TEST_USERNAME; | ||
const password = process.env.TEST_PASSWORD; | ||
await page.goto(`${caritasRework.dev}`); | ||
ensureLanguage(page); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can start with this, but generally I would recommend having the tests working no matter what language is used.
tests/login/login.spec.ts
Outdated
const password = process.env.TEST_PASSWORD; | ||
await page.goto(`${caritasRework.dev}`); | ||
ensureLanguage(page); | ||
await page.getByLabel(/(user\s?name|benutzername)/i).fill(username!); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather go with something like searching input with id "username"
testing pipelines github actions