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

    Fields
    Modifier and Type
    Field
    Description
    protected T
     

    Fields 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_PROPERTY

    Fields inherited from class com.vaadin.testbench.parallel.ParallelTest

    screenshotOnFailure

    Fields inherited from class com.vaadin.testbench.TestBenchTestCase

    driver, maxAttempts
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
    assertValidationCount(int expected)
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected abstract T
     
    protected void
     
    void
     
    protected void
     
    protected void
     

    Methods inherited from class com.vaadin.tests.AbstractComponentIT

    getDeploymentPort, setup

    Methods inherited from class com.vaadin.flow.testutil.AbstractComponentIT

    checkIfServerAvailable, getProperty, getTestPath

    Methods inherited from class com.vaadin.flow.testutil.ChromeBrowserTest

    customizeCapabilities, getBrowserCapabilities, getHubBrowsersToTest, updateHeadlessChromeOptions

    Methods inherited from class com.vaadin.flow.testutil.ViewOrUITest

    getUIClass, getViewClass

    Methods 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, waitForWebComponentsBootstrap

    Methods 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, waitUntilNot

    Methods inherited from class com.vaadin.testbench.parallel.ParallelTest

    getDefaultCapabilities, getDesiredCapabilities, getHubURL, getRunOnHub, setDesiredCapabilities

    Methods inherited from class com.vaadin.testbench.TestBenchTestCase

    concatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.testbench.HasElementQuery

    $, $
  • Field Details

    • testField

      protected T extends com.vaadin.testbench.TestBenchElement testField
  • Constructor Details

    • AbstractValidationIT

      public AbstractValidationIT()
  • Method Details

    • init

      public void init()
    • getTestField

      protected abstract T getTestField()
    • assertValidationCount

      protected void assertValidationCount(int expected)
    • resetValidationCount

      protected void resetValidationCount()
    • assertErrorMessage

      protected void assertErrorMessage(String expected)
    • 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()