File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -75,3 +75,27 @@ def test_collapse_container_plugin(self):
7575 self .assertEqual (response .status_code , 200 )
7676 self .assertContains (response , 'aria-labelledby="trigger-10"' )
7777 self .assertContains (response , "10" )
78+
79+ def test_collapse_html_id (self ):
80+ def create_plugin ():
81+ plugin = add_plugin (
82+ placeholder = self .placeholder ,
83+ plugin_type = CollapsePlugin .__name__ ,
84+ language = self .language ,
85+ )
86+ plugin .initialize_from_form (CollapseForm ).save ()
87+ self .publish (self .page , self .language )
88+
89+ create_plugin ()
90+ create_plugin ()
91+ with self .login_user_context (self .superuser ):
92+ response = self .client .get (self .request_url )
93+ self .assertEqual (response .status_code , 200 )
94+ self .assertContains (
95+ response ,
96+ """<div id="collapse-frontend-plugins-1" data-bs-children=".card" role="tablist"></div>""" ,
97+ html = True )
98+ self .assertContains (
99+ response ,
100+ """<div id="collapse-frontend-plugins-2" data-bs-children=".card" role="tablist"></div>""" ,
101+ html = True )
You can’t perform that action at this time.
0 commit comments