jeudi 29 septembre 2016

Disable or limit website crawler tests and tour tests

I have some Travis jobs failing because:

  1. href links with phone number such as <a href="tel:+54334543554" title="Call us"> tel: protocol are treated as relative links, and fail like

2016-09-29 09:20:46,029 7166 INFO customer_db werkzeug: 127.0.0.1 - - [29/Sep/2016 09:20:46] "GET /path/to/page/tel:+41228273777 HTTP/1.1" 404 - 2016-09-29 09:20:46,032 7166 ERROR customer_db openerp.addons.website.tests.test_crawl: FAIL

  1. we removed some elements on website frontend, like the dropdown for adding contents #content-menu-button, and fail like:

2016-09-29 09:21:21,516 7166 INFO customer_db openerp.tests.common: phantomjs: Tour 'event' Step: 'Create an Event' (19ms) 2016-09-29 09:21:32,574 7166 ERROR customer_db openerp.tests.common: phantomjs: error: Can't reach the next step tour: event step: 1: 'Add Content' href: http://127.0.0.1:8069/ referrer: element: false "#content-menu-button"

Is there a way to disable such tests or to limit them without patching the tests themselves?

Aucun commentaire:

Enregistrer un commentaire