2 declare(strict_types = 1);
32 $I->useExistingSession(
'admin');
41 $I->switchToContentFrame();
42 $I->canSee(
'Site Configuration',
'h1');
45 $I->amGoingTo(
'delete the auto generated config in order to create one manually');
46 $I->click(
'Delete site configuration');
47 $modalDialog->canSeeDialog();
48 $modalDialog->clickButtonInDialog(
'Delete');
49 $I->switchToContentFrame();
54 $I->amGoingTo(
'create a new site configuration when none are in the system, yet');
55 $I->click(
'Add new site configuration for this site');
56 $I->waitForElementNotVisible(
'#t3js-ui-block');
57 $I->canSee(
'Create new Site configuration');
58 $I->fillField(
'//input[contains(@data-formengine-input-name, "data[site]") and contains(@data-formengine-input-name, "[identifier]")]',
'SitesTestIdentifier');
59 $I->fillField(
'//input[contains(@data-formengine-input-name, "data[site]") and contains(@data-formengine-input-name, "[base]")]',
'http://web:8000/typo3temp/var/tests/acceptance/');
60 $I->click(
'Languages');
61 $I->fillField(
'//input[contains(@data-formengine-input-name, "data[site_language]") and contains(@data-formengine-input-name, "[title]")]',
'Homepage');
62 $I->fillField(
'//input[contains(@data-formengine-input-name, "data[site_language]") and contains(@data-formengine-input-name, "[base]")]',
'http://web:8000/typo3temp/var/tests/acceptance/');
63 $I->fillField(
'//input[contains(@data-formengine-input-name, "data[site_language]") and contains(@data-formengine-input-name, "[locale]")]',
'en_US.UTF-8');
65 $saveButtonLink =
'//*/button[@name="_savedok"][1]';
66 $I->waitForElement($saveButtonLink, 30);
67 $I->click($saveButtonLink);
68 $I->waitForElementNotVisible(
'#t3js-ui-block');
70 $I->click(
'div.module-docheader .btn.t3js-editform-close');
72 $I->waitForElementVisible(
'table.table-striped');
73 $I->canSee(
'Site Configuration',
'h1');
74 $I->canSee(
'SitesTestIdentifier');
86 $I->amGoingTo(
'create a default FE typoscript for the created site configuration');
88 $I->click(
'Template');
89 $I->switchToContentFrame();
90 $I->waitForElementVisible(
'#ts-overview');
91 $I->see(
'Template tools');
93 $I->switchToMainFrame();
94 $I->click(
'Template');
95 $I->click(
'.node.identifier-0_1');
96 $I->switchToContentFrame();
97 $I->waitForText(
'Create new website');
99 $I->click(
"//input[@name='newWebsite']");
100 $I->selectOption(
'.t3-js-jumpMenuBox',
'Info/Modify');
101 $I->waitForElement(
'.table-fit');
104 $I->click(
'Edit the whole template record');
105 $I->waitForElement(
'#EditDocumentController');
106 $I->fillField(
'//input[@data-formengine-input-name="data[sys_template][1][title]"]',
'Default Title');
107 $I->click(
"//button[@name='_savedok']");
109 $I->waitForElementNotVisible(
'#t3js-ui-block', 30);
110 $I->waitForElement(
'#EditDocumentController');
111 $I->waitForElementNotVisible(
'#t3js-ui-block');
114 $config =
'page = PAGE
115 page.shortcutIcon = fileadmin/styleguide/bus_lane.jpg
117 page.10.value = This is a default text for default rendering without dynamic content creation
119 $I->fillField(
'//textarea[@data-formengine-input-name="data[sys_template][1][config]"]', $config);
120 $I->click(
'//button[@name="_savedok"]');
121 $I->waitForElementNotVisible(
'#t3js-ui-block');
125 $I->canSee(
'This is a default text for default rendering without dynamic content creation');