summaryrefslogtreecommitdiff
path: root/src/test/java/com/mavlushechka
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/mavlushechka')
-rw-r--r--src/test/java/com/mavlushechka/a1qa/project/TestCase1.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java
index 8b7afdf..b7733bf 100644
--- a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java
+++ b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java
@@ -28,8 +28,10 @@ public class TestCase1 extends BaseTest {
LoggerUtils.step("Go to the website. Complete the necessary authorisation."
+ "Transfer the token (parameter token) generated in step 1 using a cookie. Refresh the page.");
projectsPage.performAuthorization(user);
+ Assert.assertTrue(projectsPage.state().waitForDisplayed(), "The %s page is not opened.".formatted(projectsPage.getName()));
AqualityServices.getBrowser().getDriver().manage().addCookie(new Cookie("token", token));
AqualityServices.getBrowser().refresh();
+ 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);