|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
$condition = WebDriverExpectedCondition::visibilityOfElementLocated($elementSearch); |
|
79
|
79
|
$this->webDriver->wait()->until($condition); |
|
80
|
80
|
$otherElement = $this->findById('payment_us_other_payment_methods-head'); |
|
81
|
|
- if ($otherElement->getAttribute('class')!='open') { |
|
|
81
|
+ if ($otherElement->getAttribute('class') != 'open') { |
|
82
|
82
|
$otherElement->click(); |
|
83
|
83
|
} |
|
84
|
84
|
|
|
@@ -87,7 +87,7 @@ discard block |
|
|
block discarded – undo |
|
87
|
87
|
$this->webDriver->wait()->until($condition); |
|
88
|
88
|
$this->assertTrue((bool) $condition, "PR4"); |
|
89
|
89
|
$paylaterElement = $this->findById('payment_us_paylater-head'); |
|
90
|
|
- if ($paylaterElement->getAttribute('class')!='open') { |
|
|
90
|
+ if ($paylaterElement->getAttribute('class') != 'open') { |
|
91
|
91
|
$paylaterElement->click(); |
|
92
|
92
|
} |
|
93
|
93
|
|
|
@@ -278,7 +278,7 @@ discard block |
|
|
block discarded – undo |
|
278
|
278
|
$this->webDriver->get($this->configuration['magentoUrl'].self::CHECKOUT_FOLDER); |
|
279
|
279
|
$condition = WebDriverExpectedCondition::titleContains(self::CHECKOUT_TITLE); |
|
280
|
280
|
$this->webDriver->wait()->until($condition); |
|
281
|
|
- $this->assertTrue((bool)$condition, $this->configuration['magentoUrl'].self::CHECKOUT_FOLDER); |
|
|
281
|
+ $this->assertTrue((bool) $condition, $this->configuration['magentoUrl'].self::CHECKOUT_FOLDER); |
|
282
|
282
|
} |
|
283
|
283
|
|
|
284
|
284
|
/** |
|
@@ -291,7 +291,7 @@ discard block |
|
|
block discarded – undo |
|
291
|
291
|
$this->webDriver->wait()->until($condition); |
|
292
|
292
|
$this->assertTrue((bool) $condition); |
|
293
|
293
|
$this->assertSame( |
|
294
|
|
- $this->configuration['firstname'] . ' ' . $this->configuration['lastname'], |
|
|
294
|
+ $this->configuration['firstname'].' '.$this->configuration['lastname'], |
|
295
|
295
|
$this->findByClass('FieldsPreview-desc')->getText() |
|
296
|
296
|
); |
|
297
|
297
|
} |
|
@@ -309,7 +309,7 @@ discard block |
|
|
block discarded – undo |
|
309
|
309
|
|
|
310
|
310
|
$condition = WebDriverExpectedCondition::titleContains(self::PMT_TITLE); |
|
311
|
311
|
$this->webDriver->wait(300)->until($condition, $this->webDriver->getCurrentURL()); |
|
312
|
|
- $this->assertTrue((bool)$condition, "PR32"); |
|
|
312
|
+ $this->assertTrue((bool) $condition, "PR32"); |
|
313
|
313
|
|
|
314
|
314
|
SeleniumHelper::finishForm($this->webDriver); |
|
315
|
315
|
} |