[FIX] *: adapt QUnit tests and tours

[FIX] *: selectors in tours

[FIX][TMP] account: CogMenu selector in tours

[FIX][TMP] web*: Breadcrumb targetting in tours

Adds a `o_breadcrumb` class to target the whole breadcrumb, no matter
how much elements it contains (collapsed parts, visible path, single
name...).

add classname on last breadcrumb item

[FIX][TMP] project: View buttons selector in tours (moved away from CP)

[FIX][TMP] project: Kanban selectors in tours (quick create)

[FIX][TMP] *: SearchBar selectors in tours (toggle menu)

[FIX][TMP] *: ButtonBox selector in tours

[WIP][IMP] web: add toggleSearchBarMenu in search helpers

adapt and unskip 3 list tests

adapt and unskip calendar tests

unskip web_tour test that actually pass

post rebase fix

allow to lose cell focus after multi edition (given to searchbar) - bug reported, to check later

post rebase fixes

fix

Part-of: odoo/odoo#116641
This commit is contained in:
Pierre Paridans
2023-05-12 22:59:22 +02:00
parent 3aaa0bfff1
commit eef262abf4
112 changed files with 3673 additions and 2329 deletions
@@ -88,10 +88,10 @@ QUnit.module(
assert.containsN(target, '.o_data_row', 3, "should have 3 records");
// Create a new line...
await click(target.querySelector(".o_list_button_add"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_add"));
await editInput(target, "[name=name] input", 'Bilou');
await editInput(target, "[name=age] input", '24');
await click(target.querySelector(".o_list_button_save"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_save"));
// Check new record is in the list
assert.containsN(target, '.o_data_row', 4, "should now have 4 records");
@@ -117,10 +117,10 @@ QUnit.module(
// Create a new line for an existing record...
let name = serverData.models.person.records[2].name, age = '72';
await click(target.querySelector(".o_list_button_add"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_add"));
await editInput(target, "[name=name] input", name);
await editInput(target, "[name=age] input", age);
await click(target.querySelector(".o_list_button_save"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_save"));
// Check we still have 3 records...
assert.containsN(target, '.o_data_row', 3, "should still have 3 records");
@@ -157,7 +157,7 @@ QUnit.module(
await click(target, ".o_group_field_row_add a");
await editInput(target, "[name=name] input", name);
await editInput(target, "[name=age] input", age);
await click(target.querySelector(".o_list_button_save"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_save"));
// Check we have 2 records...
assert.containsN(target, '.o_data_row', 2, "should have 2 records");
@@ -167,7 +167,7 @@ QUnit.module(
await click(target, ".o_group_field_row_add a");
await editInput(target, "[name=name] input", name);
await editInput(target, "[name=age] input", age);
await click(target.querySelector(".o_list_button_save"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_save"));
// Check we still have 2 records...
assert.containsN(target, '.o_data_row', 2, "should still have 2 records");
@@ -177,7 +177,7 @@ QUnit.module(
await editInput(target, "[name=name] input", name);
await editInput(target, "[name=age] input", age);
await editInput(target, "[name=job] input", "Soldier"); // let it in its original group
await click(target.querySelector(".o_list_button_save"));
await click(target.querySelector(".o_control_panel_main_buttons .d-none.d-xl-inline-flex .o_list_button_save"));
// Check we have 3 records...
assert.containsN(target, '.o_data_row', 3, "should have 3 records");
@@ -7,7 +7,7 @@
steps: [
{
trigger: '.o_kanban_record',
extra_trigger:'.breadcrumb',
extra_trigger: '.o_breadcrumb',
},
{
trigger: '.nav-item > a:contains("Inventory")',