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

[12.0] porting website_sale_require_login #250

Merged
merged 12 commits into from
Oct 3, 2018

Conversation

eLBati
Copy link
Member

@eLBati eLBati commented Oct 1, 2018

Depends on #249

@eLBati
Copy link
Member Author

eLBati commented Oct 1, 2018

Running tests locally, I'm getting

2018-10-01 14:47:21,000 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Tour shop_buy_product failed at step button:contains("Proceed to Checkout") 
2018-10-01 14:47:21,001 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: console log: error 
2018-10-01 14:47:21,001 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Screenshot disabled ! 
2018-10-01 14:47:21,001 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Screencast disabled ! 
2018-10-01 14:47:21,002 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Deleting cookies and clearing local storage 
2018-10-01 14:47:21,106 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Navigating to: "about:blank" 
2018-10-01 14:47:21,108 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Navigation result: {'result': {'frameId': 'EDB5C24656B3B2E77B3EEEF37DAEAB95', 'loaderId': '0009E118D87E426ECA250A102BD7D5B6'}, 'id': 289} 
2018-10-01 14:47:21,109 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Waiting for frame "EDB5C24656B3B2E77B3EEEF37DAEAB95" to stop loading 
2018-10-01 14:47:21,128 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: FAIL 
2018-10-01 14:47:21,128 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Closing chrome headless with pid 29706 
2018-10-01 14:47:21,129 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Terminating chrome headless with pid 29706 
2018-10-01 14:47:21,136 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: Removing chrome user profile "/tmp/tmp8unln9ig_chrome_odoo" 
2018-10-01 14:47:21,140 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: ====================================================================== 
2018-10-01 14:47:21,140 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: FAIL: test_04_public_checkout (odoo.addons.website_sale_require_login.tests.test_checkout.TestUi) 
2018-10-01 14:47:21,140 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: Traceback (most recent call last): 
2018-10-01 14:47:21,140 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: `   File "/home/elbati/workspace/odoo/instances/odoo12/parts/e-commerce/website_sale_require_login/tests/test_checkout.py", line 31, in test_04_public_checkout 
2018-10-01 14:47:21,141 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: `     self.run_tour() 
2018-10-01 14:47:21,141 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: `   File "/home/elbati/workspace/odoo/instances/odoo12/parts/e-commerce/website_sale_require_login/tests/test_checkout.py", line 19, in run_tour 
2018-10-01 14:47:21,141 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: `     login=login 
2018-10-01 14:47:21,141 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: `   File "/home/elbati/workspace/odoo/instances/odoo12/parts/odoo/odoo/tests/common.py", line 883, in browser_js 
2018-10-01 14:47:21,141 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: `     self.assertTrue(self.browser._wait_code_ok(code, timeout), message) 
2018-10-01 14:47:21,142 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: ` AssertionError: False is not true : The test code "odoo.__DEBUG__.services['web_tour.tour'].run('shop_buy_product')" failed 
2018-10-01 14:47:21,142 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: Ran 3 tests in 54.590s 
2018-10-01 14:47:21,142 29685 ERROR demo_12 odoo.addons.website_sale_require_login.tests.test_checkout: FAILED 
2018-10-01 14:47:21,142 29685 INFO demo_12 odoo.addons.website_sale_require_login.tests.test_checkout:  (failures=1) 
2018-10-01 14:47:21,142 29685 INFO demo_12 odoo.modules.module: odoo.addons.website_sale_require_login.tests.test_checkout tested in 54.59s, 15008 queries 
2018-10-01 14:47:21,143 29685 ERROR demo_12 odoo.modules.module: Module website_sale_require_login: 1 failures, 0 errors 
2018-10-01 14:47:21,162 29685 INFO demo_12 odoo.modules.loading: 47 modules loaded in 55.92s, 15014 queries 
2018-10-01 14:47:21,703 29685 ERROR demo_12 odoo.modules.loading: At least one test failed when loading the modules.

but I don't know how to investigate.
Any hints?

@pedrobaeza
Copy link
Member

@yajo can you help Lorenzo?

@yajo
Copy link
Member

yajo commented Oct 2, 2018

Please rebase now that #249 is merged.

@yajo yajo assigned yajo and unassigned yajo Oct 2, 2018
@yajo yajo added this to the 12.0 milestone Oct 2, 2018
@eLBati eLBati force-pushed the 12.0-mig-website_sale_require_login branch from 3a58f71 to 036d32d Compare October 2, 2018 11:19
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG. Just small changes needed. Approving to not get back 😉

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

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

remove coding pls

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería, S.L. - Jairo Llopis
Copy link
Contributor

Choose a reason for hiding this comment

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

use "Copyright"

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2015 Antiun Ingeniería S.L. - Jairo Llopis
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2015 Antiun Ingeniería S.L. - Jairo Llopis
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@rafaelbn
Copy link
Member

rafaelbn commented Oct 2, 2018

Hi @eLBati could you check @simahawk comments ? Thanks

@eLBati eLBati force-pushed the 12.0-mig-website_sale_require_login branch from 036d32d to 36b45dd Compare October 2, 2018 15:22
@eLBati
Copy link
Member Author

eLBati commented Oct 2, 2018

@rafaelbn @simahawk done

@yajo yajo merged commit fa5f143 into OCA:12.0 Oct 3, 2018
@eLBati
Copy link
Member Author

eLBati commented Oct 3, 2018

@yajo I think travis tests are green because js tours are not executed:
2018-10-02 16:52:22,935 5332 WARNING openerp_test odoo.addons.website_sale_require_login.tests.test_checkout.TestUi: websocket-client module is not installed

@yajo
Copy link
Member

yajo commented Oct 3, 2018

@moylop260 What do you think about that? ☝️

@OCA-git-bot OCA-git-bot mentioned this pull request Oct 3, 2018
19 tasks
@eLBati
Copy link
Member Author

eLBati commented Oct 4, 2018

@moylop260 it seems phantom_js is still executed by odoo 12 modules
https://github.com/odoo/odoo/blob/12.0/addons/website_sale_wishlist/tests/test_wishlist_process.py#L10
so it should be supported

@yajo
Copy link
Member

yajo commented Oct 4, 2018

Yes, but that's just an alias to run the chrome tests.

@moylop260
Copy link

Seems like a missing library:

https://github.com/odoo/odoo/blob/9a0e63d9ac642f38a09cfc844e096ee6abc23f9b/odoo/tests/common.py#L412-L414

I'll fix from MQT

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

Successfully merging this pull request may close these issues.

None yet