@@ -0,0 +1,1595 @@
+import org.junit.Test;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0Aimport org.openqa.selenium.support.ui.WebDriverWait;%0A%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A * Created by mikas on 12.11.2015.%0A */%0Apublic class LogInTest %7B%0A    private String baseUrl = %22http://localhost:3000/%22;%0A%0A    @Test%0A    public void checkTitle()%7B%0A        FirefoxDriver driver = new FirefoxDriver();%0A        driver.get(baseUrl);%0A%0A        assertTrue(driver.getTitle().equals(%22Projekt Grupowy 2015 - aplikacja demo%22));%0A%0A        driver.quit();%0A    %7D%0A%0A    @Test%0A    public void checkIfThereAreFields()%7B%0A        FirefoxDriver driver = new FirefoxDriver();%0A        driver.get(baseUrl);%0A%0A        int numberOfInputs = 2;%0A%0A        List%3CWebElement%3E inputs = driver.findElementsByCssSelector(%22input%22);%0A        WebElement button = driver.findElementByCssSelector(%22button%22);%0A%0A        assertTrue(inputs.size() == numberOfInputs && button != null);%0A        driver.quit();%0A    %7D%0A%0A    @Test%0A    public void testLoginAction()%7B%0A        FirefoxDriver driver = new FirefoxDriver();%0A        driver.get(baseUrl);%0A%0A        List%3CWebElement%3E inputs = driver.findElementsByCssSelector(%22input%22);%0A%0A        WebElement roomInput = inputs.get(0);%0A        roomInput.sendKeys(%2213%22);%0A        WebElement loginInput = inputs.get(1);%0A        loginInput.sendKeys(%22test%22);%0A%0A        driver.findElementByCssSelector(%22button%22).click();%0A%0A        String url = driver.getCurrentUrl();%0A%0A        assertTrue(url != baseUrl);%0A        driver.quit();%0A    %7D%0A%7D%0A

Add UI tests for Login page.