| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function containsColumns(array $columnNames, $representation = null): void |
||
| 27 | { |
||
| 28 | $I = $this->tester; |
||
| 29 | $formId = $I->grabAttributeFrom($this->Xpath, 'id'); |
||
| 30 | |||
| 31 | if ($representation !== null) { |
||
| 32 | $I->click("//button[contains(text(), 'View:')]"); |
||
| 33 | $I->click("//ul/li/a[contains(text(), '$representation')]"); |
||
| 34 | $I->waitForPageUpdate(120); |
||
| 35 | } |
||
| 36 | |||
| 37 | foreach ($columnNames as $column) { |
||
| 38 | $I->see($column, "//form[@id='$formId']//table/thead/tr/th"); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |