diff options
| author | Romain Derie <rde@odoo.com> | 2019-06-03 14:26:05 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-06-05 05:56:33 +0000 |
| commit | fdbf11643fd04059bfbc2210427c428979fed73d (patch) | |
| tree | 56801140d47920d0582068323dd874c2ead687d5 /addons/account/static/src | |
| parent | d7cd97a9be63ae0a8643400b56d6f9a03285fba6 (diff) | |
[IMP] *: move test and tour files to new folder hierarchy and asset
As we now have a new debug mode 'tests' which load a new asset bundle
containing tour-test files, we moved those files to a new folder hierarchy.
That will clean the .js files trees.
Also, those files should be included in the new asset.
Basically, the .js tour files (not test) should be inside /static/src/js/tours
while .js tour test files (test=true) should be inside /static/tests/tours next
to QUnit tests, inside a tours folder.
+ test_new_api: don't run the test in debug assets
task-1934445
Comes with https://github.com/odoo/enterprise/pull/4281
Closes #33213
Diffstat (limited to 'addons/account/static/src')
| -rw-r--r-- | addons/account/static/src/js/reconciliation/tour_reconciliation.js | 108 | ||||
| -rw-r--r-- | addons/account/static/src/js/tours/account.js (renamed from addons/account/static/src/js/tour.js) | 0 |
2 files changed, 0 insertions, 108 deletions
diff --git a/addons/account/static/src/js/reconciliation/tour_reconciliation.js b/addons/account/static/src/js/reconciliation/tour_reconciliation.js deleted file mode 100644 index f5eb679af51..00000000000 --- a/addons/account/static/src/js/reconciliation/tour_reconciliation.js +++ /dev/null @@ -1,108 +0,0 @@ -odoo.define('account.tour_bank_statement_reconciliation', function(require) { -'use strict'; - -var core = require('web.core'); -var rpc = require('web.rpc'); -var Tour = require('web_tour.tour'); - -Tour.register('bank_statement_reconciliation', { - test: true, - // Go to the reconciliation page of the statement: "BNK/2014/001" - }, [ - // Reconciliation of 'INV/2018/0002' - // Click on reconcile (matching done automatically by the reconciliation rule). - - { - content: "reconcile the line", - trigger: '.o_reconciliation_line:nth-child(1) .o_reconcile:visible', - }, - - // Reconciliation of 'First 2000 $ of INV/2018/0001' - // Make a partial reconciliation - - { - content: "open the last line in match mode to test the partial reconciliation", - extra_trigger: '.o_reconciliation_line:first[data-mode="match"]', - trigger: '.o_reconciliation_line:last .cell_label:contains("First")' - }, - { - content: "click on partial reconcile", - trigger: '.o_reconciliation_line:last .accounting_view .edit_amount', - }, - { - content: "Edit amount", - trigger: '.o_reconciliation_line:last .accounting_view .edit_amount_input:not(.d-none)', - run: 'text 2000' - }, - { - content: "Press enter to validate amount", - trigger: '.o_reconciliation_line:last .accounting_view .edit_amount_input:not(.d-none)', - run: 'keydown 13' - }, - { - content: "Check that amount has changed", - trigger: '.o_reconciliation_line:last .accounting_view .line_amount:contains("2,000.00")' - }, - { - content: "reconcile the line", - trigger: '.o_reconciliation_line:last .o_reconcile:visible', - }, - - // Reconciliation of 'Prepayment' - // Test changing the partner - - { - content: "change the partner of the second line", - trigger: '.o_reconciliation_line:nth-child(2) .o_field_many2one input', - run: 'text Deco' - }, - { - content: "select Deco Addict ", - extra_trigger: '.ui-autocomplete:visible li:eq(1):contains(Create "Deco")', - trigger: '.ui-autocomplete:visible li:contains(Deco Addict)', - }, - { - content: "use filter", - trigger: '.o_reconciliation_line:nth-child(2) .match .match_controls .filter', - run: 'text 4610' - }, - { - content: "select a line linked to Deco Addict ", - trigger: ".o_reconciliation_line:nth-child(2) .match .line_info_button[data-content*='Deco Addict']" - }, - { - content: "deselect the line", - trigger: '.o_reconciliation_line:nth-child(2) .accounting_view tbody .cell_label:first', - run: function() { - $('.o_reconciliation_line:nth-child(2) .accounting_view tbody .cell_label:first').trigger('click'); - } - }, - { - content: "create a write-off", - extra_trigger: '.o_reconciliation_line:nth-child(2) .accounting_view tbody:not(:has(.cell_label))', - trigger: '.o_reconciliation_line:nth-child(2) .accounting_view tfoot .cell_label' - }, - { - content: "enter an account", - trigger: '.o_reconciliation_line:nth-child(2) .o_field_many2one[name="account_id"] input', - run: 'text 100000' - }, - { - content: "select the first account", - extra_trigger: '.ui-autocomplete:visible li:eq(1):contains(Create "100000")', - trigger: '.ui-autocomplete:visible li:contains(100000)', - }, - { - content: "reconcile the line with the write-off", - trigger: '.o_reconciliation_line:nth-child(2) .o_reconcile:visible', - }, - - // Be done - { - content: "check the number off validate lines", - trigger: '.o_reconciliation .progress-text:contains(3 / 5)' - }, - ] -); - -}); diff --git a/addons/account/static/src/js/tour.js b/addons/account/static/src/js/tours/account.js index 74b0dcda95b..74b0dcda95b 100644 --- a/addons/account/static/src/js/tour.js +++ b/addons/account/static/src/js/tours/account.js |
