beforeAll(function () {
     testDataLoader.loadTestData();
     // Login as a known user
     loginPage.goToPage();
     loginPage.fillUsername("delivery@example.com");
     loginPage.fillPassword("password1");
     loginPage.login();
 });
    beforeAll(function () {
        // Call REST service to initialize database with test data
        testDataLoader.loadTestData();
        loginPage.goToPage();
        loginPage.fillUsername("delivery@example.com");
        loginPage.fillPassword("password1");
        loginPage.login();

        expect(browser.getCurrentUrl()).toMatch("/requirements");
    });
    beforeAll(function() {
        // Call REST service to initialize database with test data
        testDataLoader.loadTestData();
        loginPage.goToPage();
        loginPage.fillUsername("delivery@example.com");
        loginPage.fillPassword("password1");
        loginPage.login();

        browser.waitForAngular();

        //Go to the sprints page of the first project
        sprintPlanPage.manageSprints(0);

        //Go to the stories page of the first sprint
        sprintPlanPage.manageSprintPlans(0);

        sprintPlanPage.getStoriesForPlan().count().then(function(response) {
            storyCount = response;
        });

        //Add a new story
        sprintPlanPage.addStoryButtonClick();
        expect(browser.getCurrentUrl()).toMatch(/stories/);
    });