In progress extension of behat tests

1.10.x
Yannick Warnier 10 years ago
parent 417910a689
commit e0870e725f
  1. 23
      tests/features/bootstrap/FeatureContext.php
  2. 11
      tests/features/courseTools.feature

@ -125,4 +125,27 @@ class FeatureContext extends MinkContext
new Given('I press "submitAuth"')
);
}
/**
* @Given /^course TEMP exists$/
*/
public function courseTempExists()
{
return array(
new Given('I am a platform administrator'),
new Given('I am on "/main/admin/course_add.php"'),
new Given('I press "/main/admin/course_list.php?delete_course=TEMP"'),
new Given('I press "OK"')
);
}
/**
* @Given /^course TEMP is deleted$/
*/
public function courseTempIsDeleted()
{
return array(
new Given('I am a platform administrator'),
new Given('I am on "http://my.chamilo110.net/main/admin/course_list.php?keyword=TEMP"'),
new Given('I follow "Delete"')
);
}
}

@ -0,0 +1,11 @@
# features/courseTools.feature
@common
Feature: Course tools basic testing
In order to use a course
As a teacher
I need to be able to enter a course and each of its tools
Scenario: Make sure the course exists
Given course TEMP exists
Then I should not see an ".alert-danger" element
Loading…
Cancel
Save