Tests: try another method to create test users (add them through a scenario)

1.10.x
Yannick Warnier 10 years ago
parent 66fe7bd93d
commit 09180966a2
  1. 13
      tests/features/bootstrap/FeatureContext.php
  2. 5
      tests/features/login.feature

@ -47,19 +47,6 @@ class FeatureContext extends MinkContext
new Given('I press "submitAuth"')
);
}
/**
* @BeforeSuite
*/
public static function prepare(SuiteEvent $event)
{
// This action, launched before the suite is run, connects as an admin
// and moves to the users filler page to create about 30 new users with
// all the possible roles
return array(
new Given('I am a platform administrator'),
new Given('I am on "/main/admin/filler.php?fill=users"')
);
}
/**
* @Given /^I am a session administrator$/
*/

@ -9,6 +9,11 @@ Feature: User login
Given I am a platform administrator
Then I should not see an ".alert-danger" element
Scenario: Create tests users successfully
Given I am a platform administrator
And I am on "/main/admin/filler.php?fill=users"
Then I should not see an ".alert-danger" element
Scenario: Login as student user successfully
Given I am a student
Then I should not see an ".alert-danger" element

Loading…
Cancel
Save