public function testSee() { $this->module->amOnPage('/'); $this->module->see('Welcome to test app!'); $this->module->amOnPage('/'); $this->module->see('Welcome to test app!', 'h1'); $this->module->amOnPage('/info'); $this->module->see('valuable', 'p'); $this->module->dontSee('Welcome'); $this->module->dontSee('valuable', 'h1'); }
public function testDontSeeInElementFails() { $this->shouldFail(); $this->module->amOnPage('/info'); $this->module->dontSee('interesting', 'p'); }