Skip to content

Commit

Permalink
slide toggle tests, task 4934
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya_Lyubimov authored and Ilya_Lyubimov committed Dec 1, 2023
1 parent 56d22a0 commit 267a1e9
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.epam.angular.tests.elements.common;

import io.github.epam.TestsInit;
import org.openqa.selenium.By;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -65,4 +66,21 @@ public void resultToggleDisableTest() {
disableCheckbox.uncheck();
resultSlideToggle.is().enabled();
}

@Test
public void resultToggleLabelTextTest() {
basicSlideToggle.label().is().displayed();
basicSlideToggle.label().is().text("Slide me!");
}

@Test
public void resultToggleAriaLabelTest() {
String labelId = basicSlideToggle.label().attr("id");
basicSlideToggle.has().attr("aria-labelledby", labelId);
}

@Test
public void resultToggleRippleTest() {
basicSlideToggle.find(By.className("mdc-switch__ripple")).isDisplayed();
}
}

0 comments on commit 267a1e9

Please sign in to comment.