@Feature(summary = "The administrator can set a project to read-only",
tcmsTestPlanIds = 5316, tcmsTestCaseIds = 135848)
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
public void setAProjectToReadOnly() throws Exception {
ProjectsPage projectsPage = new LoginWorkFlow()
.signIn("admin", "admin")
.goToProjects()
.goToProject("about fedora")
.gotoSettingsTab()
.gotoSettingsGeneral()
.lockProject()
.goToProjects()
.setActiveFilterEnabled(true)
.setReadOnlyFilterEnabled(false)
.setObsoleteFilterEnabled(false)
.waitForProjectVisibility("about fedora", false);
assertThat(projectsPage.getProjectNamesOnCurrentPage())
.doesNotContain("about fedora")
.as("The project is not displayed");
projectsPage = projectsPage.setActiveFilterEnabled(false)
.setReadOnlyFilterEnabled(true)
.setObsoleteFilterEnabled(false)
.waitForProjectVisibility("about fedora", true);
assertThat(projectsPage.getProjectNamesOnCurrentPage())
.contains("about fedora")
.as("The project is now displayed");
}