mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_pivot_computed_measure: Migration to 15.0
This commit is contained in:
65
web_pivot_computed_measure/static/src/test/test.esm.js
Normal file
65
web_pivot_computed_measure/static/src/test/test.esm.js
Normal file
@@ -0,0 +1,65 @@
|
||||
/** @odoo-module **/
|
||||
/* Copyright 2022 Tecnativa - Carlos Roca
|
||||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) */
|
||||
|
||||
import tour from "web_tour.tour";
|
||||
|
||||
tour.register(
|
||||
"web_pivot_computed_measure_tour",
|
||||
{
|
||||
url: "/web",
|
||||
test: true,
|
||||
},
|
||||
[
|
||||
tour.stepUtils.showAppsMenuItem(),
|
||||
{
|
||||
trigger: 'a[data-menu-xmlid="base.menu_administration"]',
|
||||
},
|
||||
{
|
||||
trigger: 'button[data-menu-xmlid="base.menu_users"]',
|
||||
},
|
||||
{
|
||||
trigger: 'a[data-menu-xmlid="base.menu_action_res_users"]',
|
||||
},
|
||||
{
|
||||
trigger: "button.o_pivot",
|
||||
},
|
||||
{
|
||||
trigger: 'button:contains(" Measures ")',
|
||||
},
|
||||
{
|
||||
trigger: 'a:contains(" Computed Measure ")',
|
||||
},
|
||||
{
|
||||
trigger: "select#computed_measure_field_1",
|
||||
run: "text user_year_now",
|
||||
},
|
||||
{
|
||||
trigger: "select#computed_measure_field_2",
|
||||
run: "text user_year_born",
|
||||
},
|
||||
{
|
||||
trigger: "select#computed_measure_operation",
|
||||
run: "text m1-m2",
|
||||
},
|
||||
{
|
||||
trigger: "select#computed_measure_format",
|
||||
run: "text integer",
|
||||
},
|
||||
{
|
||||
trigger: "button.o_add_computed_measure",
|
||||
},
|
||||
{
|
||||
trigger: 'th.o_pivot_measure_row:contains("User Year Now")',
|
||||
extra_trigger: 'div.o_value:contains("2,022")',
|
||||
},
|
||||
{
|
||||
trigger: 'th.o_pivot_measure_row:contains("User Year Born")',
|
||||
extra_trigger: 'div.o_value:contains("1,998")',
|
||||
},
|
||||
{
|
||||
trigger: 'th.o_pivot_measure_row:contains("User Year Now-User Year Born")',
|
||||
extra_trigger: 'div.o_value:contains("24")',
|
||||
},
|
||||
]
|
||||
);
|
||||
Reference in New Issue
Block a user