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

[MERGE] tests: refactor tests and particulary ChromeBrowser class #34011

Open
wants to merge 50 commits into
base: master
from
Open
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
5d877e7
[IMP] web: make the summary field mandatory on calendar view.
rja-odoo Feb 19, 2019
cba643b
[IMP] sale: improve backend redirection from a document preview
var-odoo May 15, 2019
7108264
[REV] product: Product variant name should not be clickable.
ppr-odoo May 14, 2019
a8f64e6
[IMP] base : Timezone alert
mgh-odoo Mar 12, 2019
00d0789
[IMP] hr_expense: reduce employee visibility on report creation
MaxLarue Jun 6, 2019
8922ab7
[IMP] im_livechat: display country with a known partner name
kma-odoo Mar 15, 2019
cecb3db
[FIX] generic: fix typo in email templates.
ppr-odoo May 21, 2019
2b5b22d
[IMP] l10n_be: Add some accounts in the Belgian CoA
FlorianGilbert Apr 4, 2019
9d758e9
[IMP] hr_contract: Hide bank account when no partner is set on employee
FlorianGilbert May 31, 2019
283313a
[FIX] point_of_sale: New IoT Box build dependency
aprieels Jun 7, 2019
047e0ba
[IMP] iap: align buy credits to the left
pro-odoo Jun 11, 2019
8f88570
[FIX] base: proper removal of xmlid after update
mart-e Apr 23, 2019
36b976c
[FIX] mrp: display all information for pdf
amoyaux May 31, 2019
2843dcf
[FIX] mrp: print selected quantity
amoyaux May 31, 2019
b5091c7
[ADD] website: ability to restrict groups on website menu
JKE-be Jun 7, 2019
d7da1d6
[IMP] website, *: improve customize dialog no-reload updates
qsm-odoo Jun 11, 2019
b4480db
[MERGE] hr_payroll_account: Group accounting entries on payslips
robodoo Jun 11, 2019
c470c08
[IMP] sale_stock: custom group on so line
sergio-teruel May 29, 2019
cbd7787
[IMP] web,mail: support line break in activity feedback
var-odoo Apr 22, 2019
4642a6f
[FIX] sale: activate online payment with all payment methods of confi…
jso-odoo May 14, 2019
55e7b70
[REM] base, website: remove deprecated code from qweb and bundle
rdeodoo May 7, 2019
22437e3
[IMP] hr_contract: Sync employee and contract calendars mismatch
LucasLefevre Mar 29, 2019
f727cd2
[IMP] base, model, website[*]: add get_base_url helper
JKE-be Jun 13, 2019
562997b
[IMP] hr_timesheet: remove timesheet rule and access right for portal
pka-odoo May 10, 2019
d74ee9a
[IMP] hr_timesheet: added a timesheet for portal user
pka-odoo May 10, 2019
0cf5c87
[IMP] sale_timesheet: show all timesheets related to respective invoices
pka-odoo May 10, 2019
3309ecb
[IMP] account: find easily draft invoices for a partner
qdp-odoo Jun 14, 2019
d858e27
[FIX] packaging: add missing polib packages
d-fence Jun 14, 2019
7316111
[FIX] product: better handle of product template copy with variants
seb-odoo Jun 14, 2019
f54bab6
[IMP] point_of_sale: set sales team from pos config
rhe-odoo Jun 13, 2019
9bdecc7
[IMP] product, *: remove deprecated fields and methods
seb-odoo Jun 14, 2019
e05442f
[IMP] product, *: clean test and demo set up with attribute lines
seb-odoo Jun 17, 2019
3ab5612
[IMP] website_forum: add sequences
kea14 Jun 17, 2019
3cd7ed0
[IMP] *: remove 'view_type' on window actions.
hbh-odoo Feb 13, 2019
0fc33c3
[MERGE][IMP] *_timesheet: customer portal for timesheets
robodoo Jun 17, 2019
9035fb8
[MERGE] forward port branch saas-12.4 up to 618ea1ab675
KangOl Jun 18, 2019
6d7731d
[REF] tests: remove deprecated helpers
antonylesuisse Jun 10, 2019
d7edfdd
[REF] tests: merge Treecase and BaseCase
antonylesuisse Jun 10, 2019
ad3d4c5
[REF] tests: rename phantom_js calls to browser_js
d-fence Jun 10, 2019
6a37551
[REF] tests: refactor ChromeBrowser
antonylesuisse Jun 10, 2019
fd53d3b
Ignore errors during clear
d-fence Jun 19, 2019
060609c
m
d-fence Jun 19, 2019
c8a8407
m
d-fence Jun 19, 2019
e1bd8bc
m
d-fence Jun 19, 2019
9017d9e
m
d-fence Jun 19, 2019
f8e2c8b
m
d-fence Jun 19, 2019
fbf8aea
m
d-fence Jun 19, 2019
c276867
pff
d-fence Jun 20, 2019
734daa2
test
d-fence Jun 20, 2019
7d97b7c
smaller sleep
d-fence Jun 21, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -8,8 +8,6 @@


@odoo.tests.tagged('post_install', '-at_install')
@odoo.tests.common.at_install(False)
@odoo.tests.common.post_install(True)
class TestUi(odoo.tests.HttpCase):

def test_01_admin_bank_statement_reconciliation(self):
@@ -8,4 +8,4 @@
class IMSupportSuite(odoo.tests.HttpCase):

def test_im_support_js(self):
self.phantom_js('/im_support/tests?mod=web&failfast', "", "", login='admin', timeout=180)
self.browser_js('/im_support/tests?mod=web&failfast', "", "", login='admin', timeout=180)
@@ -12,7 +12,7 @@ class WebSuite(odoo.tests.HttpCase):

def test_js(self):
# webclient desktop test suite
self.phantom_js('/web/tests?mod=web&failfast', "", "", login='admin', timeout=1800)
self.browser_js('/web/tests?mod=web&failfast', "", "", login='admin', timeout=1800)

def test_check_suite(self):
# verify no js test is using `QUnit.only` as it forbid any other test to be executed
@@ -35,8 +35,7 @@ def _check_only_call(self, suite):

@odoo.tests.tagged('post_install', '-at_install')
class MobileWebSuite(odoo.tests.HttpCase):
browser_size = '375x667'

def test_mobile_js(self):
# webclient mobile test suite
self.phantom_js('/web/tests/mobile?mod=web&failfast', "", "", login='admin', timeout=1800)
self.browser_js('/web/tests/mobile?mod=web&failfast', "", "", login='admin', timeout=1800, size='375x667')
@@ -42,7 +42,7 @@ def test_admin_tour_rte_translator(self):
class TestUi(odoo.tests.HttpCase):

def test_01_public_homepage(self):
self.phantom_js("/", "console.log('test successful')", "'website.content.snippets.animation' in odoo.__DEBUG__.services")
self.browser_js("/", "console.log('test successful')", "'website.content.snippets.animation' in odoo.__DEBUG__.services")

def test_02_admin_tour_banner(self):
self.start_tour("/", 'banner', login='admin')
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import odoo.tests
from odoo.tests import tagged
from odoo.tests.common import HttpCase


@odoo.tests.common.at_install(False)
@odoo.tests.common.post_install(True)
class TestUi(odoo.tests.HttpCase):
@tagged('post_install', '-at_install')
class TestUi(HttpCase):
def test_01_wishlist_tour(self):
self.start_tour("/", 'shop_wishlist')
@@ -517,7 +517,7 @@ class TestAssetsBundleInBrowser(HttpCase):
def test_01_js_interpretation(self):
""" Checks that the javascript of a bundle is correctly interpreted.
"""
self.phantom_js(
self.browser_js(
"/test_assetsbundle/js",
"a + b + c === 6 ? console.log('test successful') : console.log('error')",
login="admin"
@@ -542,7 +542,7 @@ def test_02_js_interpretation_inline(self):
'inherit_id': self.browse_ref('test_assetsbundle.bundle1').id,
})

self.phantom_js(
self.browser_js(
"/test_assetsbundle/js",
"a + b + c + d === 10 ? console.log('test successful') : console.log('error')",
login="admin",
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.