Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Tests/Acceptance/Backend/ContentDefenderCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenEditAnEleme
$pageTree->openPath(['home', 'contentTCASelectCtype']);
$I->wait(0.5);
$I->switchToContentFrame();
$I->waitForElement('#element-tt_content-502 a[title="Edit"]');
$I->click('#element-tt_content-502 a[title="Edit"]');
$I->waitForElement('#EditDocumentController');
$I->openRecordInContextPanelOrWithEditDocumentController(502);
$I->see('textmedia', 'select');
$I->dontSee('Images Only', 'select');
}
Expand Down
4 changes: 1 addition & 3 deletions Tests/Acceptance/Backend/LayoutCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ public function canTranslateChild(BackendTester $I, PageTree $pageTree): void
$pageTree->openPath(['home', 'pageWithTranslatedContainer-2']);
$I->wait(0.2);
$I->switchToContentFrame();
$I->waitForElement('#element-tt_content-712');

$I->click('headerOfChild', '#element-tt_content-712');
$I->openRecordInContextPanelOrWithEditDocumentController(712);

if ($I->getTypo3MajorVersion() > 13) {
$I->waitForText('english');
Expand Down
23 changes: 23 additions & 0 deletions Tests/Acceptance/Support/BackendTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,29 @@ public function loginAs(string $username): void
$I->switchToIFrame();
}

/**
* v14: Click a content element in the page module to open it in the context panel,
* then switch into the context panel iframe.
*/
public function openRecordInContextPanelOrWithEditDocumentController(int $uid): void
{
if ($this->getTypo3MajorVersion() < 14 || (new Typo3Version())->getBranch() === '14.1') {
$this->waitForElement('#element-tt_content-' . $uid . ' a[title="Edit"]');
$this->click('#element-tt_content-' . $uid . ' a[title="Edit"]');
} else {
$this->waitForElement('#element-tt_content-' . $uid . ' typo3-backend-contextual-record-edit-trigger');
$this->click('#element-tt_content-' . $uid . ' typo3-backend-contextual-record-edit-trigger');
$this->switchToMainFrame();
$this->waitForElement('iframe[name="context_panel_frame"]', 10);
$this->switchToIFrame('context_panel_frame');
$this->waitForElementNotVisible('#t3js-ui-block');
$this->click('a.t3js-contextual-fullscreen');
$this->switchToMainFrame();
$this->switchToContentFrame();
}
$this->waitForElement('#EditDocumentController');
}

public function getDataColPos(int $containerId, int $colPos): string
{
return (string)$colPos;
Expand Down