Skip to content

Commit b625eae

Browse files
committed
Fixed code style
1 parent faf0521 commit b625eae

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/lib/Behat/BrowserContext/ContentTreeContext.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010

1111
use Behat\Behat\Context\Context;
1212
use Ibexa\AdminUi\Behat\Component\ContentTree;
13-
use Symfony\Component\Stopwatch\Stopwatch;
1413

1514
final class ContentTreeContext implements Context
1615
{
1716
private ContentTree $contentTree;
1817

19-
public function __construct(ContentTree $contentTree)
20-
ContentTree $contentTree
21-
)
18+
public function __construct (ContentTree $contentTree)
19+
2220
{
21+
2322
$this->contentTree = $contentTree;
2423
}
2524

@@ -39,12 +38,4 @@ public function contentItemExistsInContentTree(string $itemPath): void
3938
$this->contentTree->verifyIsLoaded();
4039
$this->contentTree->verifyItemExists($itemPath);
4140
}
42-
/**
43-
* @Given I wait :number seconds
44-
*/
45-
public function iWait(string $number): void
46-
{
47-
$number = (int) $number;
48-
sleep($number);
49-
}
5041
}

src/lib/Behat/Component/ContentTree.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ protected function specifyLocators(): array
3535
{
3636
return [
3737
new VisibleCSSLocator('header', '.ibexa-content-tree-container .c-tb-header__name-content,.c-header .c-header__name'),
38-
new VisibleCSSLocator('treeItem', '.c-tb-list-item-single__label'),
39-
new VisibleCSSLocator('treeElement', '.ibexa-content-tree-container__root .c-tb-list-item-single__element'),
40-
new VisibleCSSLocator('search', '.c-tb-search .ibexa-input'),
4138
new VisibleCSSLocator('contentItemInTree', '.c-tb-list-item-single__link'),
4239
];
4340
}

0 commit comments

Comments
 (0)