From e7a7875a39e86168f86cdeda089f37ccfb52136c Mon Sep 17 00:00:00 2001 From: Mavlushechka Date: Thu, 3 Nov 2022 22:37:39 +0500 Subject: Replace the Project project parameter with the String projectName in the openProject() method of the ProjectsPage class --- src/test/java/com/mavlushechka/a1qa/project/TestCase1.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/test/java/com/mavlushechka') diff --git a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java index 1463eb5..a690ee2 100644 --- a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java +++ b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java @@ -5,7 +5,6 @@ import com.mavlushechka.a1qa.framework.BaseTest; import com.mavlushechka.a1qa.framework.utils.JsonParser; import com.mavlushechka.a1qa.framework.utils.LoggerUtils; import com.mavlushechka.a1qa.framework.utils.StringUtils; -import com.mavlushechka.a1qa.project.constants.Project; import com.mavlushechka.a1qa.project.models.User; import com.mavlushechka.a1qa.project.pages.AddProjectPage; import com.mavlushechka.a1qa.project.pages.ProjectsPage; @@ -39,7 +38,7 @@ public class TestCase1 extends BaseTest { Assert.assertEquals(projectsPage.getVersion(), variant, "The variant is not correct."); LoggerUtils.step("Go to the Nexage project page. Query the api to get a list of tests in JSON/XML format."); - projectsPage.openProject(Project.NEXAGE); + projectsPage.openProject(JsonParser.parseData("testData", "project.name")); TestsPage testsPage = new TestsPage(); Assert.assertTrue(testsPage.state().waitForDisplayed(), "The %s page is not opened.".formatted(testsPage.getName())); List allRunningTestsOnSite = testsPage.getAllRunningTests(); -- cgit v1.2.3