Skip to content

Commit

Permalink
improvments in DividerTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Vlasiuk committed Dec 6, 2023
1 parent f39e8ec commit ac62b1b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.epam.angular.tests.elements.common;

import io.github.epam.TestsInit;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import static com.jdiai.tools.Timer.waitCondition;
Expand All @@ -14,30 +14,30 @@

public class DividerTests extends TestsInit {

@BeforeMethod(alwaysRun = true)
@BeforeClass(alwaysRun = true)
public void before() {
dividerPage.open();
waitCondition(() -> dividerPage.isOpened());
dividerPage.checkOpened();
textWithDefaultDividers.show();
}

@Test(description = "Test checks that default divider separators have horizontal property")
public void defaultDividersSeparatorsTest() {
@Test(description = "Test checks that default divider has horizontal property")
public void defaultDividersTest() {
defaultDividersSeparators.has().size(equalTo(2));
defaultDividersSeparators.get(1).is().horizontal();
defaultDividersSeparators.get(2).is().horizontal();
}

@Test(description = "Test checks that inset divider separators have inset property")
public void insetDividersSeparatorsTest() {
@Test(description = "Test checks that inset divider has inset property")
public void insetDividersTest() {
insetDividerSeparators.has().size(equalTo(2));
insetDividerSeparators.get(1).has().inset();
insetDividerSeparators.get(2).has().inset();
}

@Test(description = "Test checks that vertical divider separators have vertical property")
public void verticalDividerSeparatorsTest() {
@Test(description = "Test checks that vertical divider has vertical property")
public void verticalDividerTest() {
verticalDividerSeparators.has().size(equalTo(2));
verticalDividerSeparators.get(1).is().vertical();
verticalDividerSeparators.get(2).is().vertical();
Expand Down

0 comments on commit ac62b1b

Please sign in to comment.