Пример #1
0
 /**
  * @test
  */
 public function getAllInputFields_ScreenDisplayed_EqualExpected()
 {
     $this->groupManagerPage->clickButton('toolbar-new');
     $groupEditPage = $this->getPageObject('GroupEditPage');
     $testElements = $groupEditPage->getAllInputFields();
     $actualFields = $this->getActualFieldsFromElements($testElements);
     $this->assertEquals($groupEditPage->inputFields, $actualFields);
     $groupEditPage->clickButton('toolbar-cancel');
     $this->groupManagerPage = $this->getPageObject('groupManagerPage');
 }
Пример #2
0
 /**
  * Gets the actual input fields and checks them against the $inputFields property.
  *
  * @return void
  *
  * @test
  */
 public function getAllInputFields_ScreenDisplayed_EqualExpected()
 {
     $this->groupManagerPage->clickButton('toolbar-new');
     $groupEditPage = $this->getPageObject('GroupEditPage');
     /* Option to print actual element array
     		/* @var $groupEditPage GroupEditPage */
     // 	 	$groupEditPage->printFieldArray($groupEditPage->getAllInputFields($groupEditPage->tabs));
     $testElements = $groupEditPage->getAllInputFields();
     $actualFields = $this->getActualFieldsFromElements($testElements);
     $this->assertEquals($groupEditPage->inputFields, $actualFields);
     $groupEditPage->clickButton('toolbar-cancel');
     $this->groupManagerPage = $this->getPageObject('groupManagerPage');
 }