2
2
3
3
import base64
4
4
import json
5
+ import unittest
5
6
6
7
from werkzeug .urls import url_encode
7
8
@@ -68,6 +69,7 @@ def test_01_attachment_website_unlink(self):
68
69
@odoo .tests .tagged ('-at_install' , 'post_install' )
69
70
class TestUiHtmlEditor (HttpCaseWithUserDemo ):
70
71
72
+ @unittest .skip
71
73
def test_html_editor_language (self ):
72
74
Lang = self .env ['res.lang' ]
73
75
Page = self .env ['website.page' ]
@@ -111,6 +113,7 @@ def test_html_editor_language(self):
111
113
self .assertIn ("rumbler" , page .view_id .with_context (lang = 'en_US' ).arch )
112
114
self .assertIn ("rommelpot" , page .view_id .with_context (lang = 'pa_GB' ).arch )
113
115
116
+ @unittest .skip
114
117
def test_html_editor_multiple_templates (self ):
115
118
Website = self .env ['website' ]
116
119
View = self .env ['ir.ui.view' ]
@@ -149,6 +152,7 @@ def test_html_editor_multiple_templates(self):
149
152
self .assertTrue (specific_page .arch != oe_structure_layout , "Specific homepage view should have been changed" )
150
153
self .assertEqual (len (specific_page .inherit_children_ids .filtered (lambda v : 'oe_structure' in v .name )), 1 , "oe_structure view should have been created on the specific tree" )
151
154
155
+ @unittest .skip
152
156
def test_html_editor_scss (self ):
153
157
self .user_demo .write ({
154
158
'group_ids' : [(6 , 0 , [
@@ -159,6 +163,7 @@ def test_html_editor_scss(self):
159
163
self .start_tour (self .env ['website' ].get_client_action_url ('/contactus' ), 'test_html_editor_scss' , login = 'admin' )
160
164
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'test_html_editor_scss_2' , login = 'demo' )
161
165
166
+ @unittest .skip
162
167
def test_media_dialog_undraw (self ):
163
168
BASE_URL = self .base_url ()
164
169
banner = '/website/static/src/img/snippets_demo/s_banner.jpg'
@@ -183,6 +188,7 @@ def mock_media_library_search(self, **params):
183
188
184
189
self .start_tour ("/" , 'website_media_dialog_undraw' , login = 'admin' )
185
190
191
+ @unittest .skip
186
192
def test_code_editor_usable (self ):
187
193
# TODO: enable debug mode when failing tests have been fixed (props validation)
188
194
url = '/odoo/action-website.website_preview'
@@ -191,12 +197,14 @@ def test_code_editor_usable(self):
191
197
192
198
@odoo .tests .tagged ('external' , '-standard' , '-at_install' , 'post_install' )
193
199
class TestUiHtmlEditorWithExternal (HttpCaseWithUserDemo ):
200
+ @unittest .skip
194
201
def test_media_dialog_external_library (self ):
195
202
self .start_tour ("/" , 'website_media_dialog_external_library' , login = 'admin' )
196
203
197
204
198
205
@odoo .tests .tagged ('-at_install' , 'post_install' )
199
206
class TestUiTranslate (odoo .tests .HttpCase ):
207
+ @unittest .skip
200
208
def test_admin_tour_rte_translator (self ):
201
209
self .env ['res.lang' ].create ({
202
210
'name' : 'Parseltongue' ,
@@ -206,6 +214,7 @@ def test_admin_tour_rte_translator(self):
206
214
})
207
215
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'rte_translator' , login = 'admin' , timeout = 120 )
208
216
217
+ @unittest .skip
209
218
def test_translate_menu_name (self ):
210
219
lang_en = self .env .ref ('base.lang_en' )
211
220
parseltongue = self .env ['res.lang' ].create ({
@@ -232,6 +241,7 @@ def test_translate_menu_name(self):
232
241
self .assertNotEqual (new_menu .name , 'value pa-GB' , msg = "The new menu should not have its value edited, only its translation" )
233
242
self .assertEqual (new_menu .with_context (lang = parseltongue .code ).name , 'value pa-GB' , msg = "The new translation should be set" )
234
243
244
+ @unittest .skip
235
245
def test_translate_text_options (self ):
236
246
lang_en = self .env .ref ('base.lang_en' )
237
247
lang_fr = self .env .ref ('base.lang_fr' )
@@ -244,6 +254,7 @@ def test_translate_text_options(self):
244
254
245
255
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'translate_text_options' , login = 'admin' )
246
256
257
+ @unittest .skip
247
258
def test_snippet_translation (self ):
248
259
ResLang = self .env ['res.lang' ]
249
260
parseltongue , fake_user_lang = ResLang .create ([{
@@ -283,12 +294,15 @@ def test_snippet_translation(self):
283
294
@odoo .tests .common .tagged ('post_install' , '-at_install' )
284
295
class TestUi (HttpCaseWithWebsiteUser ):
285
296
297
+ @unittest .skip
286
298
def test_01_admin_tour_homepage (self ):
287
299
self .start_tour ("/odoo" , 'homepage' , login = 'admin' )
288
300
301
+ @unittest .skip
289
302
def test_02_restricted_editor (self ):
290
303
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'restricted_editor' , login = "website_user" )
291
304
305
+ @unittest .skip
292
306
def test_04_website_navbar_menu (self ):
293
307
website = self .env ['website' ].search ([], limit = 1 )
294
308
self .env ['website.menu' ].create ({
@@ -300,6 +314,7 @@ def test_04_website_navbar_menu(self):
300
314
})
301
315
self .start_tour ("/" , 'website_navbar_menu' )
302
316
317
+ @unittest .skip
303
318
def test_05_specific_website_editor (self ):
304
319
asset_bundle_xmlid = 'website.assets_wysiwyg'
305
320
website_default = self .env ['website' ].search ([], limit = 1 )
@@ -336,6 +351,7 @@ def test_05_specific_website_editor(self):
336
351
self .start_tour (f'/website/force/{ website_default .id } ?{ url_params } ' , "generic_website_editor" , login = "website_user" )
337
352
self .start_tour (f'/website/force/{ new_website .id } ?{ url_params } ' , "specific_website_editor" , login = "website_user" )
338
353
354
+ @unittest .skip
339
355
def test_06_public_user_editor (self ):
340
356
website_default = self .env ['website' ].search ([], limit = 1 )
341
357
self .env ['website.page' ].search ([
@@ -349,6 +365,7 @@ def test_06_public_user_editor(self):
349
365
"""
350
366
self .start_tour ("/" , "public_user_editor" , login = None )
351
367
368
+ @unittest .skip
352
369
def test_07_snippet_version (self ):
353
370
website_snippets = self .env .ref ('website.snippets' )
354
371
view_ids = self .env ['ir.ui.view' ].create ([{
@@ -406,19 +423,23 @@ def test_07_snippet_version(self):
406
423
407
424
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_version_2' , login = 'admin' )
408
425
426
+ @unittest .skip
409
427
def test_08_website_style_custo (self ):
410
428
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'website_style_edition' , login = 'admin' )
411
429
430
+ @unittest .skip
412
431
def test_09_website_edit_link_popover (self ):
413
432
self .start_tour ('/@/' , 'edit_link_popover' , login = 'admin' , step_delay = 500 , timeout = 180 )
414
433
434
+ @unittest .skip
415
435
def test_10_website_conditional_visibility (self ):
416
436
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'conditional_visibility_1' , login = 'admin' )
417
437
self .start_tour ('/odoo' , 'conditional_visibility_2' , login = 'website_user' )
418
438
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'conditional_visibility_3' , login = 'admin' , step_delay = 500 , timeout = 180 )
419
439
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'conditional_visibility_4' , login = 'admin' )
420
440
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'conditional_visibility_5' , login = 'admin' )
421
441
442
+ @unittest .skip
422
443
def test_11_website_snippet_background_edition (self ):
423
444
self .env ['ir.attachment' ].create ({
424
445
'public' : True ,
@@ -429,11 +450,13 @@ def test_11_website_snippet_background_edition(self):
429
450
})
430
451
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_background_edition' , login = 'admin' )
431
452
453
+ @unittest .skip
432
454
def test_12_edit_translated_page_redirect (self ):
433
455
lang = self .env ['res.lang' ]._activate_lang ('nl_NL' )
434
456
self .env ['website' ].browse (1 ).write ({'language_ids' : [(4 , lang .id , 0 )]})
435
457
self .start_tour ("/nl/contactus" , 'edit_translated_page_redirect' , login = 'admin' )
436
458
459
+ @unittest .skip
437
460
def test_13_editor_focus_blur_unit_test (self ):
438
461
# TODO this should definitely not be a website python tour test but
439
462
# while waiting for a proper web_editor qunit JS test suite for the
@@ -485,39 +508,51 @@ def test_13_editor_focus_blur_unit_test(self):
485
508
486
509
self .start_tour ('/' , 'focus_blur_snippets' , login = 'admin' )
487
510
511
+ @unittest .skip
488
512
def test_14_carousel_snippet_content_removal (self ):
489
513
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'carousel_content_removal' , login = 'admin' )
490
514
515
+ @unittest .skip
491
516
def test_15_website_link_tools (self ):
492
517
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'link_tools' , login = "admin" )
493
518
519
+ @unittest .skip
494
520
def test_16_website_edit_megamenu (self ):
495
521
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'edit_megamenu' , login = 'admin' )
496
522
523
+ @unittest .skip
497
524
def test_website_megamenu_active_nav_link (self ):
498
525
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'megamenu_active_nav_link' , login = 'admin' )
499
526
527
+ @unittest .skip
500
528
def test_17_website_edit_menus (self ):
501
529
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'edit_menus' , login = 'admin' )
502
530
531
+ @unittest .skip
503
532
def test_18_website_snippets_menu_tabs (self ):
504
533
self .start_tour ('/' , 'website_snippets_menu_tabs' , login = 'admin' )
505
534
535
+ @unittest .skip
506
536
def test_19_website_page_options (self ):
507
537
self .start_tour ("/odoo" , "website_page_options" , login = "admin" )
508
538
539
+ @unittest .skip
509
540
def test_20_snippet_editor_panel_options (self ):
510
541
self .start_tour ('/@/' , 'snippet_editor_panel_options' , login = 'admin' )
511
542
543
+ @unittest .skip
512
544
def test_21_website_start_cloned_snippet (self ):
513
545
self .start_tour ('/odoo' , 'website_start_cloned_snippet' , login = 'admin' )
514
546
547
+ @unittest .skip
515
548
def test_22_website_gray_color_palette (self ):
516
549
self .start_tour ('/odoo' , 'website_gray_color_palette' , login = 'admin' )
517
550
551
+ @unittest .skip
518
552
def test_23_website_multi_edition (self ):
519
553
self .start_tour ('/@/' , 'website_multi_edition' , login = 'admin' )
520
554
555
+ @unittest .skip
521
556
def test_24_snippet_cache_across_websites (self ):
522
557
default_website = self .env .ref ('website.default_website' )
523
558
website = self .env ['website' ].create ({
@@ -539,6 +574,7 @@ def test_24_snippet_cache_across_websites(self):
539
574
'websiteIdMapping' : json .dumps ({'Test Website' : website .id })
540
575
})
541
576
577
+ @unittest .skip
542
578
def test_26_website_media_dialog_icons (self ):
543
579
self .env .ref ('website.default_website' ).write ({
544
580
'social_twitter' : 'https://twitter.com/Odoo' ,
@@ -551,12 +587,15 @@ def test_26_website_media_dialog_icons(self):
551
587
})
552
588
self .start_tour ("/" , 'website_media_dialog_icons' , login = 'admin' )
553
589
590
+ @unittest .skip
554
591
def test_27_website_clicks (self ):
555
592
self .start_tour ('/odoo' , 'website_click_tour' , login = 'admin' )
556
593
594
+ @unittest .skip
557
595
def test_29_website_text_edition (self ):
558
596
self .start_tour ('/@/' , 'website_text_edition' , login = 'admin' )
559
597
598
+ @unittest .skip
560
599
def test_29_website_backend_menus_redirect (self ):
561
600
Menu = self .env ['ir.ui.menu' ]
562
601
menu_root = Menu .create ({'name' : 'Test Root' })
@@ -569,30 +608,39 @@ def test_29_website_backend_menus_redirect(self):
569
608
self .assertFalse (menu_root .action , 'The top menu should not have an action (or the test/tour will not test anything).' )
570
609
self .start_tour ('/' , 'website_backend_menus_redirect' , login = 'admin' )
571
610
611
+ @unittest .skip
572
612
def test_30_website_text_animations (self ):
573
613
self .start_tour ("/" , 'text_animations' , login = 'admin' )
574
614
615
+ @unittest .skip
575
616
def test_31_website_edit_megamenu_big_icons_subtitles (self ):
576
617
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'edit_megamenu_big_icons_subtitles' , login = 'admin' )
577
618
619
+ @unittest .skip
578
620
def test_32_website_background_colorpicker (self ):
579
621
self .start_tour (self .env ['website' ].get_client_action_url ("/" ), "website_background_colorpicker" , login = "admin" )
580
622
623
+ @unittest .skip
581
624
def test_website_media_dialog_image_shape (self ):
582
625
self .start_tour ("/" , 'website_media_dialog_image_shape' , login = 'admin' )
583
626
627
+ @unittest .skip
584
628
def test_website_media_dialog_insert_media (self ):
585
629
self .start_tour ("/" , "website_media_dialog_insert_media" , login = "admin" )
586
630
631
+ @unittest .skip
587
632
def test_website_text_font_size (self ):
588
633
self .start_tour ('/@/' , 'website_text_font_size' , login = 'admin' , timeout = 300 )
589
634
635
+ @unittest .skip
590
636
def test_update_column_count (self ):
591
637
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'website_update_column_count' , login = "admin" )
592
638
639
+ @unittest .skip
593
640
def test_website_text_highlights (self ):
594
641
self .start_tour ("/" , 'text_highlights' , login = 'admin' )
595
642
643
+ @unittest .skip
596
644
def test_website_extra_items_no_dirty_page (self ):
597
645
"""
598
646
Having enough menus to trigger the "+" folded menus has been known to
@@ -627,6 +675,7 @@ def test_website_extra_items_no_dirty_page(self):
627
675
628
676
self .start_tour ('/' , 'website_no_action_no_dirty_page' , login = 'admin' )
629
677
678
+ @unittest .skip
630
679
def test_website_no_dirty_page (self ):
631
680
# Previous tests are testing the dirty behavior when the extra items
632
681
# "+" menu comes in play. For other "no dirty" tests, we just remove
@@ -636,6 +685,7 @@ def test_website_no_dirty_page(self):
636
685
637
686
self .start_tour ('/' , 'website_no_dirty_page' , login = 'admin' )
638
687
688
+ @unittest .skip
639
689
def test_interaction_lifecycle (self ):
640
690
self .env ['ir.asset' ].create ({
641
691
'name' : 'wysiwyg_patch_start_and_destroy' ,
@@ -644,6 +694,7 @@ def test_interaction_lifecycle(self):
644
694
})
645
695
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'interaction_lifecycle' , login = 'admin' )
646
696
697
+ @unittest .skip
647
698
def test_drop_404_ir_attachment_url (self ):
648
699
website_snippets = self .env .ref ('website.snippets' )
649
700
self .env ['ir.ui.view' ].create ([{
@@ -680,12 +731,15 @@ def test_drop_404_ir_attachment_url(self):
680
731
})
681
732
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'drop_404_ir_attachment_url' , login = 'admin' )
682
733
734
+ @unittest .skip
683
735
def test_mobile_order_with_drag_and_drop (self ):
684
736
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'website_mobile_order_with_drag_and_drop' , login = 'admin' )
685
737
738
+ @unittest .skip
686
739
def test_powerbox_snippet (self ):
687
740
self .start_tour ('/' , 'website_powerbox_snippet' , login = 'admin' )
688
741
742
+ @unittest .skip
689
743
def test_website_no_dirty_lazy_image (self ):
690
744
website = self .env ['website' ].browse (1 )
691
745
# Enable multiple langs to reduce the chance of the test being silently
@@ -719,6 +773,7 @@ def test_website_no_dirty_lazy_image(self):
719
773
720
774
self .start_tour ('/' , 'website_no_dirty_lazy_image' , login = 'admin' )
721
775
776
+ @unittest .skip
722
777
def test_website_edit_menus_delete_parent (self ):
723
778
website = self .env ['website' ].browse (1 )
724
779
menu_tree = self .env ['website.menu' ].get_tree (website .id )
@@ -730,17 +785,22 @@ def test_website_edit_menus_delete_parent(self):
730
785
self .env ['website.menu' ].save (website .id , {'data' : [parent_menu , child_menu ]})
731
786
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'edit_menus_delete_parent' , login = 'admin' )
732
787
788
+ @unittest .skip
733
789
def test_snippet_carousel (self ):
734
790
self .start_tour ('/' , 'snippet_carousel' , login = 'admin' )
735
791
792
+ @unittest .skip
736
793
def test_media_iframe_video (self ):
737
794
self .start_tour ("/" , "website_media_iframe_video" , login = "admin" )
738
795
796
+ @unittest .skip
739
797
def test_snippet_visibility_option (self ):
740
798
self .start_tour ("/" , "snippet_visibility_option" , login = "admin" )
741
799
800
+ @unittest .skip
742
801
def test_website_font_family (self ):
743
802
self .start_tour ("/" , "website_font_family" , login = "admin" )
744
803
804
+ @unittest .skip
745
805
def test_website_seo_notification (self ):
746
806
self .start_tour (self .env ['website' ].get_client_action_url ("/" ), "website_seo_notification" , login = "admin" )
0 commit comments