Commit Graph

142 Commits

Author SHA1 Message Date
ddm 3344f5792d [FIX] UI tests timeout extension
bzr revid: ddm@openerp.com-20131227112824-82t16ygv33wt7hfw
2013-12-27 12:28:24 +01:00
ddm 23958c233b [FIX] UI tests config for runbot
bzr revid: ddm@openerp.com-20131227112554-4q839w4xrrnmth0e
2013-12-27 12:25:54 +01:00
ddm 02e944cb8a [FIX] UI tests should not fail on runbot
bzr revid: ddm@openerp.com-20131227100939-dadzuyexl0anrese
2013-12-27 11:09:39 +01:00
ddm eb9aa9ca3b [IMP] Code cleanup
bzr revid: ddm@openerp.com-20131224084326-j2mbcq90pc5hvezi
2013-12-24 09:43:26 +01:00
ddm 7c695446b8 bzr revid: ddm@openerp.com-20131223165708-3fz1mk6s9bmlvxka 2013-12-23 17:57:08 +01:00
ddm 2648d55033 [IMP] Refactor UI test code for reusability
bzr revid: ddm@openerp.com-20131223165113-kx4aalzs6las1m2z
2013-12-23 17:51:13 +01:00
ddm cbfadb48a0 [IMP] UI tests code cleanup (python)
bzr revid: ddm@openerp.com-20131223162234-2cicx8ffnjrp24s4
2013-12-23 17:22:34 +01:00
ddm 71a5a4a9f4 [IMP] UI tests: removed useless break
bzr revid: ddm@openerp.com-20131223161032-ipncw5lfxmdrjz9x
2013-12-23 17:10:32 +01:00
ddm ddb551cbd6 [FIX] Banner tour test
bzr revid: ddm@openerp.com-20131223154653-44ws3k6o6u4tegjn
2013-12-23 16:46:53 +01:00
ddm 39c5b09e6e [IMP] Banner tour automated test
bzr revid: ddm@openerp.com-20131223152503-saqpy0d8vgvg9p20
2013-12-23 16:25:03 +01:00
ddm 65f48d0ce7 [IMP] PhantomJS UI test code
bzr revid: ddm@openerp.com-20131223145436-nqrwtsg5avqml7qw
2013-12-23 15:54:36 +01:00
ddm faae14704d [IMP] PhantomJS UI error reporting
bzr revid: ddm@openerp.com-20131223144603-xxuml794a91nt2sc
2013-12-23 15:46:03 +01:00
ddm dbe5c06d95 [IMP] PhantomJS UI tests code cleanup
bzr revid: ddm@openerp.com-20131223144100-h8eui7szdj40e2mo
2013-12-23 15:41:00 +01:00
ddm fbea33821b [IMP] PhantomJS test with authentication
bzr revid: ddm@openerp.com-20131223143547-sgx2shqf9vg52e9j
2013-12-23 15:35:47 +01:00
ddm 8fd5fb82a7 [IMP] Added simple DOM UI test as example
bzr revid: ddm@openerp.com-20131223135425-9hxb4nmvdr0rrb3t
2013-12-23 14:54:25 +01:00
ddm 4a7143d329 [IMP] Sleep a little between reads
bzr revid: ddm@openerp.com-20131223102826-u3z9i9ohy7s1d8nb
2013-12-23 11:28:26 +01:00
ddm 063ebff8f5 [IMP] Code style + doc
bzr revid: ddm@openerp.com-20131223101701-1o9qvlwk96axpd1l
2013-12-23 11:17:01 +01:00
ddm 726fd3f2bc [FIX] Handle timeout in UI tests
bzr revid: ddm@openerp.com-20131223100003-h8qhzmk61dz9bzon
2013-12-23 11:00:03 +01:00
ddm 2381c44441 [IMP] UI test runner code doc
bzr revid: ddm@openerp.com-20131218152352-mclkpnjpzvqsibqh
2013-12-18 16:23:52 +01:00
ddm 50ab1e551e [IMP] Cleanup UI tests
bzr revid: ddm@openerp.com-20131218151702-68m9z9wm31rj5g2f
2013-12-18 16:17:02 +01:00
ddm 245a6aafa9 [FIX] Fix UI test runner
bzr revid: ddm@openerp.com-20131218150056-xqueu19zpm17nlpj
2013-12-18 16:00:56 +01:00
ddm 4f0ad3f64a [IMP] Basic support for ui tests
bzr revid: ddm@openerp.com-20131218145628-9oqxlwy4g05n4jwa
2013-12-18 15:56:28 +01:00
Xavier Morel e04983ae69 [IMP] conversion back from m2o t-field to openerp value
Instead of doing a name_get on the edited value and trying to find out
an m2o to assign back (which there's pretty much no chance of given
there's no autocompletion or anything), alter the m2o record in-place
by setting the provided edited value to its _rec_name.

Ideally, both features could be supported via more advanced m2o
edition widgets which would allow selecting an existing m2o, creating
a new m2o record from scratch or (maybe) editing the existing m2o's
display_name if possible, somewhat similar to what the form view
provides.

Without these though, the only action which makes any sense is to edit
the user-visible "value" where it is found, as with more normal
fields.

bzr revid: xmo@openerp.com-20131218140917-4eo2o55yfcumzhov
2013-12-18 15:09:17 +01:00
Xavier Morel 4469b36f77 [FIX] change view section saving: only save view section *content*
Before, would save view section itself (including root element). But
branding distribution (and thus editability) are set on the last
programmatic root, thus the root element may well be generated
e.g. <span t-att-foo> will define the span itself as editable.

Saving this would remove the programmatic content on the node, and
thus break the view section altogether.

Fix the issue by only saving the root's content in the previous root.

bzr revid: xmo@openerp.com-20131217112034-nbxbg919cffv4w51
2013-12-17 12:20:34 +01:00
Xavier Morel a67b3adf80 [IMP] remove footer link to sitemap, add direct sitemap link in test suite
the html sitemap is used as a proxy for testing the XML one.

bzr revid: xmo@openerp.com-20131125120916-d5w5xos2c7aimf31
2013-11-25 13:09:16 +01:00
Xavier Morel b05db3495c [IMP] in crawler testing, indicate at which page the failed url was found
bzr revid: xmo@openerp.com-20131125120548-0s7xnhszd48e1u9v
2013-11-25 13:05:48 +01:00
Xavier Morel 841a5e7c2d [FIX] db handling being a pain in the ass
On runbot the base url dispatches into a unknown void of no db being
selected and the CMS thus 404s. For human beings there are additional
links to special subdomains setting the right db in the right place
(or maybe the right dbfilter, whatever) but that doesn't work right
for the crawler test suite.

Instead go through /web/ with a forced db selection, this *should* set
the db correctly in the user's session even if he's anonymous and thus
allows us to browse said db.

No idea if this fevered idea is actually going to work.

bzr revid: xmo@openerp.com-20131106115547-0ozlex09svkecrhb
2013-11-06 12:55:47 +01:00
Xavier Morel b754d4999c [FIX] enable auth'd crawling of CMS
bzr revid: xmo@openerp.com-20131105161345-257bebtxce4wa217
2013-11-05 17:13:45 +01:00
Xavier Morel 1308726046 [FIX] use config's xmlrpc_port during auth
bzr revid: xmo@openerp.com-20131105154414-wdfmu70m5gf2sjea
2013-11-05 16:44:14 +01:00
Xavier Morel a9193cf2ec [FIX] use db_name from tools.config to know where to auth
auth's currently disabled so it doesn't matter much really

bzr revid: xmo@openerp.com-20131105154131-35lqg2l6tdccgvp7
2013-11-05 16:41:31 +01:00
Xavier Morel 496431b4f0 [ADD] CMS crawling case, with a bunch of hardcoded values to fix
bzr revid: xmo@openerp.com-20131105145047-4ccrchj79lohry5q
2013-11-05 15:50:47 +01:00
Xavier Morel 1687668026 [ADD] parsing of locale-formatted floats
bzr revid: xmo@openerp.com-20131022085450-mhymubsywkonepjx
2013-10-22 10:54:50 +02:00
Xavier Morel 53d004b6bc [FIX] test for qweb getting cr and uid
bzr revid: xmo@openerp.com-20131018144604-z39ibj61x96foatc
2013-10-18 16:46:04 +02:00
Xavier Morel ec8ea76a0e [FIX] QWebContext necessary in some tests
bzr revid: xmo@openerp.com-20131014093713-2hawn717pby32pgw
2013-10-14 11:37:13 +02:00
Xavier Morel eaef36c910 [FIX] move conversion code from ir.fields.converter into website.qweb structures
bzr revid: xmo@openerp.com-20131009133112-05dglhptiw019838
2013-10-09 15:31:12 +02:00
Xavier Morel 3d5857d504 [FIX] qweb oe object renamed in registry
bzr revid: xmo@openerp.com-20131007092405-2ffrntwlzup6lvu1
2013-10-07 11:24:05 +02:00
Xavier Morel e826d0e7f8 [IMP] openerp-ified qweb
bzr revid: xmo@openerp.com-20131004134637-l2mpxsjwgu4pff2z
2013-10-04 15:46:37 +02:00
Xavier Morel ce30e7691e [IMP] move conversion out of view.save
Also, html.fromstring does weird stuff when encoding is not specified,
force to utf-8 just in case.

bzr revid: xmo@openerp.com-20130930145358-qh7xdicgg21prsk4
2013-09-30 16:53:58 +02:00
Xavier Morel 5de155ad98 [FIX] avoid losing non-meta attributes when converting t-fields back
bzr revid: xmo@openerp.com-20130919092546-c7yr8e4kixh4ngta
2013-09-19 11:25:46 +02:00
Xavier Morel 757a2dbc4e [IMP] single whole-page editor, reinstate ability to save only an embedded field (not part of a view)
bzr revid: xmo@openerp.com-20130917085753-aa32xxezhtrfaffj
2013-09-17 10:57:53 +02:00
Xavier Morel 29707bb8bf [FIX] don't lose text following a node being transformed back into a t-field
bzr revid: xmo@openerp.com-20130910143406-nuzu8vz5rzmshnzc
2013-09-10 16:34:06 +02:00
Xavier Morel 7e6f1a104e [ADD] move view.save tests from server
bzr revid: xmo@openerp.com-20130910133055-75q72gd75sty317m
2013-09-10 15:30:55 +02:00