New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@depends doesnt work with @dataprovider #3862
Comments
Confirmed, however, in my case only the last test is skipped even if it does not have a |
@Fuin can you try in your project the fix proposed. The fix is located in vendor/Codeception/src/Codeception/SuiteManager.php |
Thanks, I've changed the lines in SuiteManager and all tests are working fine. |
If fine with @DavertMik then yes it will be available in 2.2.8. |
The fix was merged. |
Hello
I have an @Depends as well as an @dataProvider annotation on one of my tests.
/**
* @param \Step\Acceptance\Login $I
*
* @Depends ProfileManagement\RegistrationCest:registerWithRequiredFields
* @dataProvider userProvider
*/
public function editPassword(\Step\Acceptance\Login $I, Example $example)
{
$I->amOnPage(HomePage::$URL);
$I->login();
$I->waitForElementVisible(ProfilePage::$profileChangePasswordFirstField);
$I->fillField(ProfilePage::$profileChangePasswordFirstField, $example['password']);
$I->fillField(ProfilePage::$profileChangePasswordSecondField, $example['password']);
$I->click(ProfilePage::$profileSaveNewPasswordButton);
$I->waitForElementVisible(ProfilePage::$profileMessageContainer);
$I->canSee('Passwort würde erfolgreich geändert', ProfilePage::$profileMessageContainer);
}
It works well for that one test however all following tests which have the @Depends annotation are skipped with the message
If I add the @dataProvider annotation to all tests with @Depends its working
Codeception version: 2.2.7
PHP Version: 5.7.3
Operating System: Windows 7
Installation type: Composer
The text was updated successfully, but these errors were encountered: