Commit 8cfbfe39 authored by chandi's avatar chandi

fixed failing tests !748

parent cc68a40a
Pipeline #48483388 canceled with stages
in 1 minute and 51 seconds
......@@ -3,11 +3,11 @@
class LoginCest
{
/**
* @example ["createFoodsaver", "Hallo ", "Foodsaver für"]
* @example ["createFoodsaver", "Dein Stammbezirk ist"]
* @example ["createFoodsharer", "Willkommen "]
* @example ["createStoreCoordinator", "Hallo ", "Betriebsverantwortlich"]
* @example ["createAmbassador", "Hallo ", "Botschafter/In für"]
* @example ["createOrga", "Hallo ", "Orgamensch für"]
* @example ["createStoreCoordinator", "Dein Stammbezirk ist"]
* @example ["createAmbassador", "Dein Stammbezirk ist"]
* @example ["createOrga", "Dein Stammbezirk ist"]
*/
public function checkLogin(\ApiTester $I, \Codeception\Example $example)
{
......@@ -25,10 +25,7 @@ class LoginCest
$I->seeResponseCodeIs(\Codeception\Util\HttpCode::OK);
$I->seeHtml();
$I->seeRegExp('~.*' . $example[1] . $user['name'] . '.*~i');
if (isset($example[2])) {
$I->seeRegExp('~.*' . $example[2] . '.*~i');
}
$I->seeRegExp('~.*' . $example[1] . '.*~i');
// initially old md5 password is stored
$I->assertNotEmpty($user['passwd']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment