Skip to content

Commit 202c3ed

Browse files
committed
Restored some parts of code
1 parent 12685f2 commit 202c3ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/Behat/Page/ContentViewPage.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use Behat\Mink\Session;
1212
use Ibexa\AdminUi\Behat\Component\Breadcrumb;
13-
use Ibexa\AdminUi\Behat\Component\CancelContentDialog;
1413
use Ibexa\AdminUi\Behat\Component\ContentActionsMenu;
1514
use Ibexa\AdminUi\Behat\Component\ContentItemAdminPreview;
1615
use 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
}

0 commit comments

Comments
 (0)