Skip to content

Commit

Permalink
4949-refactoringCheckBoxTestsEnumFixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaElf committed Oct 26, 2023
1 parent 11bde65 commit e7b1f5d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import static com.epam.jdi.light.angular.elements.enums.CheckBoxModes.AFTER;
import static com.epam.jdi.light.angular.elements.enums.CheckBoxModes.BEFORE;
import static com.epam.jdi.light.angular.elements.enums.CheckBoxAlignPosition.AFTER;
import static com.epam.jdi.light.angular.elements.enums.CheckBoxAlignPosition.BEFORE;
import static com.jdiai.tools.Timer.waitCondition;

import static io.github.com.StaticSite.checkBoxPage;
Expand Down Expand Up @@ -66,9 +66,9 @@ public void disabledOptionCheckBoxTest() {

@Test(description = "Test verifies checkbox align positions")
public void alignPositionsCheckboxTest() {
modeRadioGroup.click(BEFORE.getMode());
modeRadioGroup.click(BEFORE.getAlignPosition());
resultCheckbox.is().alignedBefore();
modeRadioGroup.click(AFTER.getMode());
modeRadioGroup.click(AFTER.getAlignPosition());
resultCheckbox.is().alignedAfter();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.epam.jdi.light.angular.elements.enums;

public enum CheckBoxAlignPosition {
BEFORE("before"),
AFTER("after");
private final String alignPosition;

CheckBoxAlignPosition(String alignPosition) {
this.alignPosition = alignPosition;
}

public String getAlignPosition() {
return this.alignPosition;
}
}

This file was deleted.

0 comments on commit e7b1f5d

Please sign in to comment.