BackendEditorCest::checkTemplateFieldsTest PHP Method

checkTemplateFieldsTest() public method

Create a contact page with templatefields
public checkTemplateFieldsTest ( AcceptanceTester $I )
$I AcceptanceTester
    public function checkTemplateFieldsTest(\AcceptanceTester $I)
    {
        $I->wantTo('Create a contact page with templatefields');
        // Set up the browser
        $this->setLoginCookies($I);
        $I->amOnPage('/bolt');
        $I->see('New Page');
        $I->click('New Page');
        $I->fillField('#title', 'Contact Page');
        $I->fillField('#slug', 'contact');
        $I->selectOption('#template', 'extrafields.twig');
        $I->click('Save Page', '#savecontinuebutton');
        $I->see('The new Page has been saved.');
        $I->click('Contact Page');
        // Page has been saved, fill templatefields
        $I->see('Template', 'a[data-toggle=tab]');
        $I->fillField('#templatefields-section_1', 'This is the contact text');
        $I->click('Save Page');
        $I->click('Contact Page');
        /*
         * In v2.0.13 Codeception made the awesome decision to refactor their
         * PHP Browser code — in a patch release no less — and it doesn't
         * properly handle URL queries parameters in POSTs. For now we'll just
         * pretend that seeing the data is good enough…
         */
        $I->seeInSource('This is the contact text');
        //         $I->seeInField('#templatefields-section_1', 'This is the contact text');
    }