Examples of DashboardClientTab


Examples of org.zanata.page.dashboard.dashboardsettings.DashboardClientTab

    }

    public DashboardClientTab goToSettingsClientTab() {
        log.info("Click Client settings sub-tab");
        clickWhenTabEnabled(waitForWebElement(settingsClientTab));
        return new DashboardClientTab(getDriver());
    }
View Full Code Here

Examples of org.zanata.page.dashboard.dashboardsettings.DashboardClientTab

    @Feature(summary = "The user can view their account details",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86819)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void verifyProfileData() throws Exception {
        DashboardClientTab dashboardClientTab = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToSettingsTab()
                .goToSettingsClientTab();

        assertThat(dashboardClientTab.getApiKey()).isEqualTo(adminsApiKey)
                .as("The correct api key is present");

        assertThat(dashboardClientTab.getConfigurationDetails())
                .contains("localhost.url="+serverUrl)
                .as("The configuration url is correct");

        assertThat(dashboardClientTab.getConfigurationDetails())
                .contains("localhost.username=admin")
                .as("The configuration username is correct");

        assertThat(dashboardClientTab.getConfigurationDetails())
                .contains("localhost.key=".concat(adminsApiKey))
                .as("The configuration api key is correct");
    }
View Full Code Here

Examples of org.zanata.page.dashboard.dashboardsettings.DashboardClientTab

    @Feature(summary = "The user can change their API key",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void changeUsersApiKey() throws Exception {
        DashboardClientTab dashboardClientTab = new LoginWorkFlow()
                .signIn("translator", "translator")
                .goToSettingsTab()
                .goToSettingsClientTab();
        String currentApiKey = dashboardClientTab.getApiKey();
        dashboardClientTab = dashboardClientTab.pressApiKeyGenerateButton();

        dashboardClientTab.waitForApiKeyChanged(currentApiKey);

        assertThat(dashboardClientTab.getApiKey()).isNotEqualTo(currentApiKey)
                .as("The user's api key is different");

        assertThat(dashboardClientTab.getApiKey()).isNotEmpty()
                .as("The user's api key is not empty");

        assertThat(dashboardClientTab.getConfigurationDetails())
                .contains("localhost.key="
                        .concat(dashboardClientTab.getApiKey()))
                .as("The configuration api key matches the label");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.