[Behat][AddressBook] Added assertion, fixed test

Added in "it should contain" step which checks if an address contains a given string.
Corrected test for displayed country.
This commit is contained in:
Krzysztof Lament 2017-06-25 09:44:46 +02:00
parent 213f0f88dc
commit 492b8477fc
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ Feature: Making changes in existing addresses
And I save my changed address
Then I should be notified that the address has been successfully updated
And I should still have a single address in my address book
And it should contain "Australia"
And it should contain "AUSTRALIA"
And it should contain "Queensland"
@ui @javascript

View file

@ -224,7 +224,7 @@ final class AddressBookContext implements Context
{
$fullName = $this->sharedStorage->get('full_name');
$this->addressBookIndexPage->addressOfContains($fullName, $value);
Assert::true($this->addressBookIndexPage->addressOfContains($fullName, $value));
}
/**