File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1010
1111use Behat \Mink \Session ;
1212use Ibexa \AdminUi \Behat \Component \Breadcrumb ;
13- use Ibexa \AdminUi \Behat \Component \CancelContentDialog ;
1413use Ibexa \AdminUi \Behat \Component \ContentActionsMenu ;
1514use Ibexa \AdminUi \Behat \Component \ContentItemAdminPreview ;
1615use Ibexa \AdminUi \Behat \Component \ContentTypePicker ;
@@ -135,10 +134,13 @@ public function __construct(
135134 $ this ->tableBuilder = $ tableBuilder ;
136135 }
137136
138- public function startCreatingContent (string $ contentTypeName )
137+ public function startCreatingContent (string $ contentTypeName, ? string $ language = null )
139138 {
140139 $ this ->contentActionsMenu ->clickButton ('Create content ' );
141140 $ this ->contentTypePicker ->verifyIsLoaded ();
141+ if ($ language !== null ) {
142+ $ this ->contentTypePicker ->selectLanguage ($ language );
143+ }
142144 $ this ->contentTypePicker ->select ($ contentTypeName );
143145 $ this ->contentTypePicker ->confirm ();
144146 }
You can’t perform that action at this time.
0 commit comments