@@ -35,17 +35,22 @@ registerWebsitePreviewTour('test_custom_snippet', {
35
35
} ,
36
36
{
37
37
content : "Save custom snippet" ,
38
- trigger : ".snippet-option-SnippetSave we-button " ,
38
+ trigger : "div[data-container-title='Banner'] .oe_snippet_save " ,
39
39
run : "click" ,
40
40
} ,
41
41
{
42
42
content : "Confirm reload" ,
43
- trigger : ".modal-dialog button:contains('Save and Reload')" ,
43
+ trigger : ".modal-dialog button:contains('Save')" ,
44
+ run : "click" ,
45
+ } ,
46
+ {
47
+ content : "Click on the block tab" ,
48
+ trigger : ".o-snippets-tabs button[data-name='blocks']" ,
44
49
run : "click" ,
45
50
} ,
46
51
{
47
52
content : "Click on the Custom category block" ,
48
- trigger : "#oe_snippets .oe_snippet [name='Custom'].o_we_draggable .oe_snippet_thumbnail " ,
53
+ trigger : "#snippet_groups .o_snippet [name='Custom'].o_draggable .o_snippet_thumbnail:not(.o_we_ongoing_insertion) .o_snippet_thumbnail_area " ,
49
54
run : "click" ,
50
55
} ,
51
56
{
@@ -54,17 +59,17 @@ registerWebsitePreviewTour('test_custom_snippet', {
54
59
} ,
55
60
{
56
61
content : "Rename custom snippet" ,
57
- trigger : ":iframe .o_custom_snippet_wrap > . o_custom_snippet_edit > button" ,
62
+ trigger : ":iframe .o_custom_snippet_edit > button" ,
58
63
run : "click" ,
59
64
} ,
60
65
{
61
66
content : "Set name" ,
62
- trigger : ".o_rename_custom_snippet_dialog input[id='customSnippetName ']" ,
67
+ trigger : ".modal-dialog:not(.o_inactive_modal body) input[id='inputConfirmation ']" ,
63
68
run : "edit Bruce Banner" ,
64
69
} ,
65
70
{
66
71
content : "Confirm rename" ,
67
- trigger : ".o_rename_custom_snippet_dialog footer .btn-primary" ,
72
+ trigger : ".modal-dialog:not(.o_inactive_modal body) footer .btn-primary" ,
68
73
run : "click" ,
69
74
} ,
70
75
{
@@ -82,12 +87,12 @@ registerWebsitePreviewTour('test_custom_snippet', {
82
87
} ,
83
88
{
84
89
content : "Click on the Custom category block" ,
85
- trigger : "#oe_snippets .oe_snippet [name='Custom'].o_we_draggable .oe_snippet_thumbnail " ,
90
+ trigger : "#snippet_groups .o_snippet [name='Custom'].o_draggable .o_snippet_thumbnail:not(.o_we_ongoing_insertion) .o_snippet_thumbnail_area " ,
86
91
run : "click" ,
87
92
} ,
88
93
{
89
94
content : "Delete custom snippet" ,
90
- trigger : ":iframe .o_custom_snippet_wrap > . o_custom_snippet_edit > button + button" ,
95
+ trigger : ":iframe .o_custom_snippet_edit > button + button" ,
91
96
run : "click" ,
92
97
} ,
93
98
{
0 commit comments