use of org.olat.selenium.page.user.UserPreferencesPageFragment in project OpenOLAT by OpenOLAT.
the class UserTest method userResetItsPreferences.
/**
* Reset the preferences and check that a log out happens
*
* @param loginPage
* @throws IOException
* @throws URISyntaxException
*/
@Test
@RunAsClient
public void userResetItsPreferences(@InitialPage LoginPage loginPage) throws IOException, URISyntaxException {
UserVO user = new UserRestClient(deploymentUrl).createRandomUser();
loginPage.loginAs(user.getLogin(), user.getPassword()).resume();
UserToolsPage userTools = new UserToolsPage(browser);
UserPreferencesPageFragment prefs = userTools.openUserToolsMenu().openMySettings().openPreferences();
// reset the preferences
prefs.resetPreferences();
// check the user is log out
loginPage.assertOnLoginPage();
}
use of org.olat.selenium.page.user.UserPreferencesPageFragment in project openolat by klemens.
the class UserTest method userResetItsPreferences.
/**
* Reset the preferences and check that a log out happens
*
* @param loginPage
* @throws IOException
* @throws URISyntaxException
*/
@Test
@RunAsClient
public void userResetItsPreferences(@InitialPage LoginPage loginPage) throws IOException, URISyntaxException {
UserVO user = new UserRestClient(deploymentUrl).createRandomUser();
loginPage.loginAs(user.getLogin(), user.getPassword()).resume();
UserToolsPage userTools = new UserToolsPage(browser);
UserPreferencesPageFragment prefs = userTools.openUserToolsMenu().openMySettings().openPreferences();
// reset the preferences
prefs.resetPreferences();
// check the user is log out
loginPage.assertOnLoginPage();
}
Aggregations