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

[RFC] How to run JS tests #811

Closed
legalsylvain opened this issue Jul 8, 2022 · 2 comments
Closed

[RFC] How to run JS tests #811

legalsylvain opened this issue Jul 8, 2022 · 2 comments

Comments

@legalsylvain
Copy link
Contributor

Hi all. (but specially @ivantodorovich ;-))

I'm currently developping on master (15.5 branch) new PoS module.

I try to write javascript test tour. (based on some great exemple like : pos_event_sale :

I tried to run test, but the tests are skipped : Failed to detect chrome devtools port after 10.0s
(raised here : https://github.com/odoo/odoo/blob/15.0/odoo/tests/common.py#L893)

Do you know what to install to make the test running locally ?
Context : Ubuntu 20.04.4 LTS

Thanks !

@ivantodorovich
Copy link
Contributor

Personally I just run tests within a docker container with chromium installed, and never encountered this issue.

On the other hand I see the oca-ci uses chrome

You could try to see if you have a recent enough version installed.
Maybe this isn't supported in older chrome versions?

Btw, unrelated to you question, if you're writing tools I recommend you to use screenshots otherwise it's a real pain

@legalsylvain
Copy link
Contributor Author

legalsylvain commented Jul 8, 2022

On the other hand I see the oca-ci uses chrome

Weird. I had chromium installed, and it was not working. I just run OCA command present in your link of the OCA CI, and it is working. (well it is failing, but that's another story ;-))

Thanks for the info !

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

No branches or pull requests

2 participants