Package com.vaadin.tests.validation
Class AbstractValidationIT<T extends com.vaadin.testbench.TestBenchElement>
java.lang.Object
com.vaadin.testbench.TestBenchTestCase
com.vaadin.testbench.parallel.ParallelTest
com.vaadin.flow.testutil.TestBenchHelpers
com.vaadin.flow.testutil.AbstractTestBenchTest
com.vaadin.flow.testutil.ViewOrUITest
com.vaadin.flow.testutil.ChromeBrowserTest
com.vaadin.flow.testutil.AbstractComponentIT
com.vaadin.tests.AbstractComponentIT
com.vaadin.tests.validation.AbstractValidationIT<T>
- All Implemented Interfaces:
com.vaadin.testbench.HasDriver,com.vaadin.testbench.HasElementQuery,com.vaadin.testbench.HasSearchContext,com.vaadin.testbench.HasTestBenchCommandExecutor
public abstract class AbstractValidationIT<T extends com.vaadin.testbench.TestBenchElement>
extends AbstractComponentIT
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
com.vaadin.flow.testutil.AbstractTestBenchTest.ClientChecker -
Field Summary
FieldsFields inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
BROWSERSTACK_IDENTIFIER, BROWSERSTACK_IDENTIFIER_PROPERTY, SERVER_PORT, SERVER_PORT_PROPERTY_KEY, testName, USE_BROWSERSTACK, USE_BROWSERSTACK_PROPERTY, USE_HUB, USE_HUB_PROPERTYFields inherited from class com.vaadin.testbench.parallel.ParallelTest
screenshotOnFailureFields inherited from class com.vaadin.testbench.TestBenchTestCase
driver, maxAttempts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidassertErrorMessage(String expected) protected voidprotected voidprotected voidassertValidationCount(int expected) protected voidprotected voidprotected voidprotected voidprotected voidprotected abstract Tprotected voidvoidinit()protected voidprotected voidMethods inherited from class com.vaadin.tests.AbstractComponentIT
getDeploymentPort, setupMethods inherited from class com.vaadin.flow.testutil.AbstractComponentIT
checkIfServerAvailable, getProperty, getTestPathMethods inherited from class com.vaadin.flow.testutil.ChromeBrowserTest
customizeCapabilities, getBrowserCapabilities, getHubBrowsersToTest, updateHeadlessChromeOptionsMethods inherited from class com.vaadin.flow.testutil.ViewOrUITest
getUIClass, getViewClassMethods inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
assertImageEquals, assertRuleOnce, getBrowsersToTest, getCurrentHostAddress, getDeploymentHostname, getHubHostname, getLocalExecution, getRootURL, getRunLocallyBrowser, getRunLocallyBrowserVersion, getTestURL, getTestURL, isClientRouter, open, open, openForEs6Url, openUrl, verifyScreenshot, waitForClientRouter, waitForFont, waitForWebComponent, waitForWebComponentsBootstrapMethods inherited from class com.vaadin.flow.testutil.TestBenchHelpers
assertEquals, blur, checkLogsForErrors, checkLogsForErrors, clickElementWithJs, clickElementWithJs, drag, dragAndDrop, dragElementOver, executeScript, getLogEntries, getScrollX, getScrollY, hasCssClass, isElementPresent, scrollBy, scrollIntoViewAndClick, scrollToElement, waitForDevServer, waitForElementNotPresent, waitForElementPresent, waitForElementVisible, waitUntilNot, waitUntilNotMethods inherited from class com.vaadin.testbench.parallel.ParallelTest
getDefaultCapabilities, getDesiredCapabilities, getHubURL, getRunOnHub, setDesiredCapabilitiesMethods inherited from class com.vaadin.testbench.TestBenchTestCase
concatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.testbench.HasElementQuery
$, $
-
Field Details
-
testField
-
-
Constructor Details
-
AbstractValidationIT
public AbstractValidationIT()
-
-
Method Details
-
init
public void init() -
getTestField
-
assertValidationCount
protected void assertValidationCount(int expected) -
resetValidationCount
protected void resetValidationCount() -
assertErrorMessage
-
assertClientValid
protected void assertClientValid() -
assertClientInvalid
protected void assertClientInvalid() -
assertServerValid
protected void assertServerValid() -
assertServerInvalid
protected void assertServerInvalid() -
assertWebComponentCanNotModifyInvalidState
protected void assertWebComponentCanNotModifyInvalidState() -
detachAndReattachField
protected void detachAndReattachField() -
detachField
protected void detachField() -
attachField
protected void attachField() -
attachAndInvalidateField
protected void attachAndInvalidateField() -
hideField
protected void hideField() -
showAndInvalidateField
protected void showAndInvalidateField()
-