-
Notifications
You must be signed in to change notification settings - Fork 13
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
test: add playwright tests #237
base: mobile_v15
Are you sure you want to change the base?
Conversation
c6aef7d
to
c733f54
Compare
42ef71c
to
f2b2295
Compare
f2b2295
to
9581f38
Compare
beam/tests/test_mobile.py
Outdated
|
||
# find the first item in the list | ||
item = page.locator("css=.box .beam_list-item").first | ||
item_name, *others = item.inner_text().split("\n") |
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.
@agritheory this only works cause the first thing in each list is the item name, but we could maybe tag the item name with a class to identify it more reliably in tests?
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'd prefer a data attribute, but I agree.
abf7ae7
to
00b860f
Compare
43e2e24
to
521c59f
Compare
@agritheory I'm seeing some weird behaviour that I'm not sure if you've faced before. While running the tests locally, I'm scanning and saving the record and it creates an entry in the database. However, the pytest runner can't seem to fetch that record for assertions. Have you seen something like this? |
Closes #193
Test locally inside a virtualenv using
pytest ./beam/tests/mobile/test_mobile.py --browser firefox --headed --disable-warnings