package objective.taskboard.it;

/*-
 * [LICENSE]
 * Taskboard
 * ---
 * Copyright (C) 2015 - 2017 Objective Solutions
 * ---
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * [/LICENSE]
 */

import org.junit.Before;

public abstract class AuthenticatedIntegrationTest extends AbstractUIWithCoverageIntegrationTest {

    @Before
    public final void doLogin() {
        LoginPage loginPage = LoginPage.to(webDriver);
        loginPage.login("foo", "bar");
        
        MainPage mainPage = MainPage.produce(webDriver);
        mainPage.waitUserLabelToBe("Foo");
        mainPage.lane("Demand").boardStep("Open").assertIssueList("TASKB-20");
    }
}

@@ -1202,60 +1202,266 @@
 ne(%22
-Demand%22).boardStep(%22Open%22).assertIssueList(%22TASKB-20
+Operational%22)%0A        %09.boardStep(%22Done%22)%0A        %09.assertIssueList(%0A        %09%09%09%22TASKB-638%22,%0A        %09%09%09%22TASKB-656%22,%0A        %09%09%09%22TASKB-657%22,%0A        %09%09%09%22TASKB-658%22,%0A        %09%09%09%22TASKB-660%22,%0A        %09%09%09%22TASKB-662%22,%0A        %09%09%09%22TASKB-678%22,%0A        %09%09%09%22TASKB-679
 %22);%0A

Fix tests intermittent due to board render not ready