public function deniedPublishPagesTest(\AcceptanceTester $I) { $I->wantTo("be denied permission to publish Pages as the 'editor' user"); // Set up the browser $this->setLoginCookies($I); $I->amOnPage('/bolt/editcontent/pages/1'); $I->see('Actions for this Page'); // Make sure the page cannot be published by setting its status $I->seeInField('#statusselect', 'draft'); $I->dontSeeInField('#statusselect', 'published'); // Save the page and return to the overview $I->click('Save & return to overview'); $I->see('Actions for Pages', '.panel-heading'); // Check the 'Publish page' context menu option isn't shown $I->dontSee('Publish Page', 'a'); // Check the 'Duplicate page' context menu option is shown $I->see('Duplicate Page', 'a'); }