Skip to content
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

Dlaliberte playwright 06 22 #3184

Merged
merged 104 commits into from
Sep 6, 2023
Merged

Dlaliberte playwright 06 22 #3184

merged 104 commits into from
Sep 6, 2023

Conversation

dlaliberte
Copy link
Collaborator

@dlaliberte dlaliberte commented Jul 17, 2023

Add initial playwright visual tests.

  • This PR includes many changes to the configuration of the repo to support the use of docker-compose with the playwright test system.
  • Only one set of simple tests are included at this time. The "Add a feature" button and navigation to the form for adding a new feature are minimally tested.

@dlaliberte dlaliberte marked this pull request as draft July 17, 2023 19:45
dlaliberte and others added 23 commits July 17, 2023 19:46
* Extend devcontainer docker compose file for playwright

Create another docker compose file for playwright.
That new one extends the existing docker compose

Should be able to run:

`npm run pwtests`

* adjust gh action

* adjust gh action

* remove volumes

* add timeout

* fix volumes
* try running as user

* again

* try

* change volume ownership

* tidy up
@dlaliberte dlaliberte marked this pull request as ready for review August 30, 2023 19:51
dlaliberte and others added 4 commits August 30, 2023 20:13
* set script-shell to fix source not found and call npm run setup

There has always been `source: not found` in the previous CI jobs

The tests previously worked because
npm run deps installs the requirements into the default environment and not the virtual environment.
And since we actually did not call `source` correctly, it was okay because
the default environment had the packages installed.

The problem started to arise because we started to call `source`
correctly in some places but not all places. This fixes by setting the
shell consistently whenever we call `source`

More info:
https://morgan.cugerone.com/blog/troubleshooting-source-not-found-when-in-the-context-of-package-json-scripts/

* do each separately

* Revert "do each separately"

This reverts commit 4fc75f7.

* do ci job

* consistent to the right datastore mode

* verbose

* kill the emulator

* remove verbose
@dlaliberte
Copy link
Collaborator Author

dlaliberte commented Sep 5, 2023

One of the hacks/workarounds I did early on was to hide the google login, so it didn't get in the way of logging into the testing account, especially on Firefox where the login dialog always popped up when you were not logged in. But we probably want to allow developers to login to their own account as well, so I'll see if I can reenable the google login, now that we got everything else working.

Copy link
Collaborator

@jrobbins jrobbins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a first pass through and have some questions.

Dockerfile Outdated Show resolved Hide resolved
client-src/elements/chromedash-drawer.js Outdated Show resolved Hide resolved
client-src/elements/chromedash-drawer.js Show resolved Hide resolved
client-src/elements/chromedash-header.js Show resolved Hide resolved
framework/secrets.py Show resolved Hide resolved
packages/playwright/tests/test_utils.js Outdated Show resolved Hide resolved
client-src/elements/chromedash-header.js Outdated Show resolved Hide resolved
packages/playwright/tests/test_utils.js Show resolved Hide resolved
scripts/start_server.sh Outdated Show resolved Hide resolved
@dlaliberte dlaliberte merged commit 0baad0b into main Sep 6, 2023
7 checks passed
@jrobbins
Copy link
Collaborator

jrobbins commented Sep 6, 2023

Please give a specific PR summary line.

@jrobbins
Copy link
Collaborator

jrobbins commented Sep 6, 2023

Please give a specific PR summary line.

Oh well. I did not see that you had merged it already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants