Error on show product without pricing#11400
Conversation
lchrusciel
left a comment
There was a problem hiding this comment.
Hello Olivier,
thanks a lot for your contribution. Can you, however, cover this case with behat, please? Just to avoid regression in the future
| /** | ||
| * @Then I should not see price for channel :channelName | ||
| */ | ||
| public function iShouldNotSeePriceForChannel(string $channelName) |
| $channelPriceRow = $this->getDocument()->find('css', sprintf('#pricing tr:contains("%s")', $channelName)); | ||
|
|
||
| if (null === $channelPriceRow) { | ||
| return ''; |
There was a problem hiding this comment.
Maybe null? It clearly says that there is no price rather than there is something but empty 💃
|
|
||
| public function countChannels(): int | ||
| { | ||
| if (! $this->hasElement('channels')) { |
|
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
|
Thank you, @oallain! 🎉 |
Behat :
Before fix step
Then I should see product name "Iron shield"throw error in cause of error 500 in page.After fix, all steps are green ✔️