<commit_before>package pt.fccn.mobile.arquivo.tests.menu;

import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import pt.fccn.arquivo.selenium.Retry;
import pt.fccn.arquivo.selenium.WebDriverTestBaseParalell;

/**
 *
 * @author <NAME> <<EMAIL>>
 *
 */
public class MenuAboutTest extends MenuTest {

	public MenuAboutTest(String os, String version, String browser, String deviceName, String deviceOrientation) {
		super(os, version, browser, deviceName, deviceOrientation);
	}

	@Test
	@Retry
	public void menuAboutPTTest() {
		menuAbout("pt", "https://sobre.arquivo.pt/pt/");

		menuAbout("en", "https://sobre.arquivo.pt/en/");
	}

	private void menuAbout(String language, String expectedUrl) {
		driver.get(testURL + "?l=" + language);

		openMenu();

		run("Click about button", () -> driver.findElementByXPath("//*[@id=\"menuSwiperSlide\"]/a/h4").click());

		appendError("Check if current url is the about page",
				() -> new WebDriverWait(driver, 20).until(ExpectedConditions.urlContains(expectedUrl)));
	}

}
<commit_msg>Organize imports.<commit_after>package pt.fccn.mobile.arquivo.tests.menu;

import org.junit.Test;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import pt.fccn.arquivo.selenium.Retry;

/**
 *
 * @author <NAME> <<EMAIL>>
 *
 */
public class MenuAboutTest extends MenuTest {

	public MenuAboutTest(String os, String version, String browser, String deviceName, String deviceOrientation) {
		super(os, version, browser, deviceName, deviceOrientation);
	}

	@Test
	@Retry
	public void menuAboutPTTest() {
		menuAbout("pt", "https://sobre.arquivo.pt/pt/");

		menuAbout("en", "https://sobre.arquivo.pt/en/");
	}

	private void menuAbout(String language, String expectedUrl) {
		driver.get(testURL + "?l=" + language);

		openMenu();

		run("Click about button", () -> driver.findElementByXPath("//*[@id=\"menuSwiperSlide\"]/a/h4").click());

		appendError("Check if current url is the about page",
				() -> new WebDriverWait(driver, 20).until(ExpectedConditions.urlContains(expectedUrl)));
	}

}

{'fraction_non_alphanumeric': 0.15468607825295724, 'fraction_numerical': 0.00272975432211101, 'mean_word_length': 5.008196721311475, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 4, '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': '2404634', 'n_tokens_mistral': 784, 'n_tokens_neox': 737, 'n_words': 141}