Answer the question
In order to leave comments, you need to log in
How to view items in select?
There is a normal select on the form. I'm testing this form via codeception (functional tests).
There is such method $I->seeInFormFields. I will not understand in any way as to it to specify the list of options . Those. I know in advance what options should be there and I want to make sure that they are all there. For example if I write like this:
$I->seeInFormFields('form', ['Article[section_id]' => $sections]);
1) ArticleFormCest: Test add new article
Test tests\functional\ArticleFormCest.php:testAddNewArticle
Step See in form fields "form",{"Article[section_id]":["section1"]}
Fail Failed asserting that `section1` is in select's value: array (
0 => '',
)
Failed asserting that an array contains 'section1'.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question