Skip to content
Snippets Groups Projects
Commit dd5fc473 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Fix acceptance test cross dependency

FileClipboardCest works on file tree and selects
a sub folder. NavigationComponentTreeCest can not
deal with this and fails. Sanitize this case better.

Resolves: #99933
Releases: main
Change-Id: I4f9a7153981b7d64e64752ef8cbc0a32dbf2b7ae
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77832


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 11693dd1
Branches
Tags
No related merge requests found
......@@ -17,6 +17,8 @@ declare(strict_types=1);
namespace TYPO3\CMS\Core\Tests\Acceptance\Application\Topbar;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\WebDriverBy;
use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
/**
......@@ -54,6 +56,18 @@ final class NavigationComponentTreeCest
$I->wantTo('check File Module for Expands And Collapse');
$I->click('Filelist');
// Make sure 'fileadmin' is selected since FileClipboardCest clicks around on file tree, too.
// @todo: Working on file tree could be extracted like Helper/PageTree
$I->waitForText('fileadmin');
$context = $I->executeInSelenium(function (RemoteWebDriver $webdriver) {
return $webdriver->findElement(WebDriverBy::cssSelector('#typo3-filestoragetree-tree'));
});
$context = $I->executeInSelenium(function () use ($context) {
return $context->findElement(WebDriverBy::xpath('//*[text()=\'fileadmin\']/..'));
});
$context->findElement(WebDriverBy::cssSelector('text.node-name'))->click();
$I->waitForElement($treeArea);
$I->see('fileadmin', $treeArea);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment