diff options
author | Mavlushechka <mavlushechka@gmail.com> | 2022-11-03 22:37:39 +0500 |
---|---|---|
committer | Mavlushechka <mavlushechka@gmail.com> | 2022-11-03 22:38:20 +0500 |
commit | e7a7875a39e86168f86cdeda089f37ccfb52136c (patch) | |
tree | bd8b966120fdffd38aa08dd4d5aaf4deeee5cfa6 /src/test | |
parent | fe010d5471c0de2910d707670b8e5255b0a1d5d7 (diff) |
Replace the Project project parameter with the String projectName in the openProject() method of the ProjectsPage class
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/mavlushechka/a1qa/project/TestCase1.java | 3 |
1 files changed, 1 insertions, 2 deletions
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<com.mavlushechka.a1qa.project.models.Test> allRunningTestsOnSite = testsPage.getAllRunningTests(); |