| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | abstract class AbstractRegister extends PagantisOscommerceTest |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Success message |
||
| 17 | */ |
||
| 18 | const SUCCESS_MESSAGE = '¡Su cuenta ha sido creada!'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * OpenOsCommerce page |
||
| 22 | */ |
||
| 23 | public function openOsCommerce() |
||
| 24 | { |
||
| 25 | $this->webDriver->get(self::OSCURL); |
||
| 26 | |||
| 27 | $this->webDriver->wait(10, 500)->until( |
||
| 28 | WebDriverExpectedCondition::titleContains( |
||
| 29 | self::TITLE |
||
| 30 | ) |
||
| 31 | ); |
||
| 32 | |||
| 33 | $this->assertEquals(self::TITLE, $this->webDriver->getTitle()); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Go to my account page |
||
| 38 | */ |
||
| 39 | public function goToAccountPage() |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Go To account create |
||
| 51 | */ |
||
| 52 | public function goToAccountCreate() |
||
| 62 |