<commit_before><commit_msg>Added feature page acceptance test<commit_after>package org.ale.thot.selenium;

import org.apache.commons.lang3.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class FeaturesTest {
	
	private static String serverUrl = "http://localhost:9080/thot-app";
	private static final String SYSTEM_PROPERTY = "server.url";
	private WebDriver driver;
	private String baseUrl;
	
	@Before
	public void setUp(){
		driver = new FirefoxDriver();
		baseUrl = System.getProperty(SYSTEM_PROPERTY);
		if(StringUtils.isEmpty(baseUrl)){
			baseUrl = serverUrl;
		}
	}
	
	@Test
	public void openCurrentSessionsPage(){
		open("/features.jsp");
		driver.findElement(By.id("versionTitle"));
	}

	private void open(String url) {
		driver.navigate().to(baseUrl+url);
	}
	
	@After
	public void tearDownWebDriver(){
		driver.close();
	}

}
{'fraction_non_alphanumeric': 0.121, 'fraction_numerical': 0.005, 'mean_word_length': 5.103658536585366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1375525', 'n_tokens_mistral': 345, 'n_tokens_neox': 320, 'n_words': 68}