Commit 3b08734d authored by Curtis Adam's avatar Curtis Adam

WIP: Remove chimp issues

parent e5a7f0a1
......@@ -32,11 +32,12 @@ module.exports = function () {
});
this.Then(/^user should see the college and course in list$/, function () {
browser.waitForExist('#tblCollege', 5000);
var college = browser.getText("#tblCollege");
var course = browser.getText("#tblCourse");
expect(college[college.length - 1]).toEqual("THM");
expect(course[course.length - 1]).toEqual("MSP");
expect(college).toEqual("THM");
expect(course).toEqual("MSP");
logoutAdmin();
});
......
......@@ -10,7 +10,7 @@ module.exports = function () {
var moduleInitials = "short";
var moduleID = "42";
var college = "THM";
var course = "Informatik";
var course = "MSP";
this.Given(/^User is on the site$/, function () {
......@@ -79,7 +79,7 @@ module.exports = function () {
browser.waitForVisible('#newSetCourse',5000);
browser.click('#newSetCourse');
browser.waitForVisible('li[data="' + course + '"] a', 5000);
browser.click('li[data="Informatik"] a');
browser.click('li[data="' + course + '"] a');
});
this.Then(/^he should push the create new cardset button$/, function () {
......
......@@ -7,6 +7,7 @@ Feature: Create a new Card and delete it
And he is on the view of a cardset
When the user clicks on the --create a new card-- button
And he is redirected to the --New card-- view
And he enters a text for the subject of the card
And he enters a text for the front of the card
And he enters a text for the back of the card
And he press on the save button
......
......@@ -42,6 +42,9 @@ module.exports = function () {
var expectedUrl = "http://localhost:3000/cardset/2P6mg5iqCZ49QPPDz/newcard";
expect(currentUrl).toEqual(expectedUrl);
});
this.When(/^he enters a text for the subject of the card$/, function () {
browser.setValue('#subjectEditor', 'SUBJECTOFTHECARD');
});
this.When(/^he enters a text for the front of the card$/, function () {
browser.setValue('#frontEditor', 'FRONTOFTHECARD');
});
......
......@@ -46,7 +46,7 @@ for testDir in $searchDir; do
# Restore the database
echo -e $GREEN"Restoring database ..." $NC
if ! mongorestore --quiet --drop -h 127.0.0.1 --port 3001 -d meteor $dumpDir 1> /dev/null; then
if ! mongorestore --drop -h 127.0.0.1 --port 3001 -d meteor $dumpDir 1> /dev/null; then
echo -e $RED"mongorestore failed!" $NC
exit 2
fi
......
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