@@ -95,8 +95,6 @@ class ContentViewPage extends Page
9595
9696 private TableBuilder $ tableBuilder ;
9797
98- private ?CancelContentDialog $ cancelContentDialog ;
99-
10098 public function __construct (
10199 Session $ session ,
102100 Router $ router ,
@@ -115,8 +113,7 @@ public function __construct(
115113 UpperMenu $ upperMenu ,
116114 DeleteContentDialog $ deleteContentDialog ,
117115 CreateUrlAliasModal $ createUrlAliasModal ,
118- TableBuilder $ tableBuilder ,
119- ?CancelContentDialog $ cancelContentDialog = null
116+ TableBuilder $ tableBuilder
120117 ) {
121118 parent ::__construct ($ session , $ router );
122119
@@ -136,16 +133,12 @@ public function __construct(
136133 $ this ->deleteContentDialog = $ deleteContentDialog ;
137134 $ this ->createUrlAliasModal = $ createUrlAliasModal ;
138135 $ this ->tableBuilder = $ tableBuilder ;
139- $ this ->cancelContentDialog = $ cancelContentDialog ;
140136 }
141137
142- public function startCreatingContent (string $ contentTypeName, ? string $ language = null )
138+ public function startCreatingContent (string $ contentTypeName )
143139 {
144140 $ this ->contentActionsMenu ->clickButton ('Create content ' );
145141 $ this ->contentTypePicker ->verifyIsLoaded ();
146- if ($ language !== null ) {
147- $ this ->contentTypePicker ->selectLanguage ($ language );
148- }
149142 $ this ->contentTypePicker ->select ($ contentTypeName );
150143 $ this ->contentTypePicker ->confirm ();
151144 }
@@ -430,8 +423,6 @@ public function cancelScheduledHiding(): void
430423 {
431424 $ this ->getHTMLPage ()->find ($ this ->getLocator ('cancelScheduleButton ' ))->click ();
432425 $ this ->dialog ->verifyIsLoaded ();
433- if ($ this ->cancelContentDialog !== null ) {
434- $ this ->cancelContentDialog ->confirmCanceling ('Cancel scheduled hiding ' );
435- }
426+ $ this ->dialog ->confirm ();
436427 }
437428}
0 commit comments