@Feature(summary = "The administrator can add a maintainer to a project",
tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
public void addMaintainerAsAdmin() throws Exception {
ProjectPermissionsTab projectPermissionsTab = new LoginWorkFlow()
.signIn("admin", "admin")
.goToProjects()
.goToProject("about fedora")
.gotoSettingsTab()
.gotoSettingsPermissionsTab();
assertThat(projectPermissionsTab.getSettingsMaintainersList())
.doesNotContain("translator")
.as("The translator user is not a maintainer");
projectPermissionsTab = new ProjectWorkFlow()
.addMaintainer("about fedora", "translator");
assertThat(projectPermissionsTab.getSettingsMaintainersList())
.contains("translator")
.as("The translator user is a maintainer");
ProjectMaintainersPage projectMaintainersPage = projectPermissionsTab
.gotoMaintainersTab();
assertThat(projectMaintainersPage.getMaintainers())
.contains("translator @translator")
.as("The translator user is shown in the list");