-
Notifications
You must be signed in to change notification settings - Fork 11
Use playwright for functional tests #537
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
Changes from all commits
9c9ec07
c666d93
df0b309
ca5a156
a46d881
7d3670d
02b83c3
687d49f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,14 +9,8 @@ ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /usr/src/app | ||
|
|
||
| # Install packages depending on ENV arg from docker-compose | ||
| ARG BASE_PACKAGES="gcc libpq-dev libjpeg62-turbo-dev libsqlite3-0 zlib1g-dev" | ||
| ARG DEV_PACKAGES="firefox-esr" | ||
| RUN if [ "$IS_PROD" = "true" ]; then \ | ||
| PACKAGES_TO_INSTALL="$BASE_PACKAGES"; \ | ||
| else \ | ||
| PACKAGES_TO_INSTALL="$BASE_PACKAGES $DEV_PACKAGES"; \ | ||
| fi && \ | ||
| apt-get update && \ | ||
| ARG PACKAGES_TO_INSTALL="gcc libpq-dev libjpeg62-turbo-dev libsqlite3-0 zlib1g-dev" | ||
| RUN apt-get update && \ | ||
| apt-get install -y -qq --no-install-recommends $PACKAGES_TO_INSTALL && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
@@ -28,6 +22,7 @@ RUN if [ "$IS_PROD" = "true" ]; then \ | |
| poetry install --only main --no-root; \ | ||
| else \ | ||
| poetry install --no-root; \ | ||
| playwright install --with-deps chromium; \ | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switching functional tests from Firefox to Chromium due to current browser market shares |
||
| fi | ||
|
|
||
| # Setup application | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ $(document).ready(function() { | |
| $('#current-uii').text(deptUiidLabel); | ||
| $('#uii-question').show(); | ||
| } else { | ||
| $('#unique_internal_identifier').text(''); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed a minor bug where unique internal identifier would still be included in the form submission if you fill in the field for a department with UII but then switched to a department without UII |
||
| $('#uii-question').hide(); | ||
| } | ||
| }); | ||
|
|
||
This file was deleted.
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.
Uploads traces you can view at https://trace.playwright.dev/ if tests fail
Example: https://github.com/OrcaCollective/OpenOversight/actions/runs/13615275905/job/38057562364?pr=537#step:5:23
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.
This is exceptionally cool - do you mind documenting it somewhere in the repo?
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.
Added documentation!