/** * Given I am on the list of applications When I select "FR" as a language Then the page title is * "Applications configurées" */ @Test public void titleInFrench() { applications.selectLanguage("FR"); assertEquals("Applications configurées", applications.getPageTitle()); }
/** * Given I am on the list of applications When I select "EN" as a language Then the page title is * "Configured applications" */ @Test public void titleInEnglish() { applications.selectLanguage("EN"); assertEquals("Configured applications", applications.getPageTitle()); }
/** Following languages should be available on the home page. */ @Test public void availableLanguages() { // Asserts the languages Collection<String> actualLanguages = applications.getLanguages(); assertEquals(asList("EN", "FR"), actualLanguages); }