public function testEditConfigWithCommit(WebGuy $I) { $I->wantTo('create new interface using commit all'); $this->_addInterface($I); $I->click('Append changes'); $I->seeNumberOfElements('form.addedForm', 1); $I->click('Commit all changes'); // see result CommonScenarios::checkNumberOfFlashes($I, 1); $I->seeNumberOfElements('.level-0.interface', 3); }
public function testEditConfigWithCommit(WebGuy $I) { $I->wantTo('create new transition function using commit all'); $this->_turingAddTransition($I, true, 2); $I->click('Append changes'); $I->seeNumberOfElements('form.addedForm', 1); $I->click('Commit all changes'); $I->waitForElementNotVisible('#ajax-spinner'); $I->wait(2); // see result CommonScenarios::checkNumberOfFlashes($I, 1); $I->canSeeNumberOfElements('.level-1.delta', 2); }
public function testDatastore(WebGuy $I) { $this->_login($I); $this->_changeTo($I); $I->wantTo('test candidate datastore'); // check if module is empty if (0) { $I->click('.remove-child'); $I->click('Delete record'); $I->waitForElementNotVisible('#ajax-spinner'); $I->waitForText('Create empty root element'); CommonScenarios::checkNumberOfFlashes($I, 1); } $this->_createEmptyModule($I); }
public function testEditConfig(WebGuy $I) { $I->wantTo('create new interface using submit button'); $inputValue = 'test-name' . time(); $I->click('.create-child[rel="--*--*?3!"]'); CommonScenarios::waitAndClickInTypeahead($I, 'group'); $I->waitForElement('input.value[name*="--*--*?3!--*?1!--*?1!"]'); $I->fillField('input.value[name*="--*--*?3!--*?1!--*?1!"]', $inputValue); $I->click('Create new node'); $I->waitForElementNotVisible('#ajax-spinner'); $I->wait(2); // $I->canSee($inputValue); CommonScenarios::checkNumberOfFlashes($I, 1); $I->canSee('group'); }
public function connectToLocalhostDevice2(WebGuy $I) { CommonScenarios::connectToLocalhostDevice($I); $I->wantTo('connect to second localhost device'); $I->amOnPage('/connections/'); $I->expectTo('connect to localhost device'); $I->waitForText('localhost:830', 10); $I->click('#block--historyOfConnectedDevices a.device-item'); $I->fillField('Password', CommonScenarios::$devicePass); $I->click('Connect'); $I->waitForText('Loading...', 10); $I->waitForText('Configure device', 50, '#row-1'); $I->seeNumberOfElements('.message.success', 3); $I->seeNumberOfElements('tr', 2); $I->waitForElementNotVisible('#ajax-spinner'); $I->expectTo('disconnect from second device'); $I->click('Disconnect', '#row-1'); $I->waitForElementNotVisible('#row-1'); CommonScenarios::checkNumberOfFlashes($I, 1, 'success', 'Successfully disconnected.'); $I->seeNumberOfElements('tr', 1); }