public abstract class ComponentDemoTest extends ChromeBrowserTest
| Modifier and Type | Class and Description |
|---|---|
static class |
ComponentDemoTest.DefaultProducer
Default variant producer
|
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebElement |
layout |
BROWSERSTACK_IDENTIFIER, BROWSERSTACK_IDENTIFIER_PROPERTY, SERVER_PORT, SERVER_PORT_PROPERTY_KEY, testName, USE_BROWSERSTACK, USE_BROWSERSTACK_PROPERTY, USE_HUB, USE_HUB_PROPERTY| Constructor and Description |
|---|
ComponentDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDeploymentPort() |
void |
openDemoPageAndCheckForErrors()
Runs before each test.
|
protected void |
verifyThemeVariantsBeingToggled()
Verifies variants functionality for the current layout with using the
ComponentDemoTest.DefaultProducer. |
protected void |
verifyThemeVariantsBeingToggled(Function<org.openqa.selenium.WebElement,String> variantProducer)
Verifies variants functionality for the current layout with customized
variant producer implementation.
|
createHeadlessChromeOptions, customizeCapabilities, getBrowserCapabilities, getHubBrowsersToTest, setChromeDriverPath, setupgetTestPath, getUIClass, getViewClasscheckIfServerAvailable, getBrowsersToTest, getCurrentHostAddress, getDeploymentHostname, getHubHostname, getLocalExecution, getRootURL, getRunLocallyBrowser, getRunLocallyBrowserVersion, getTestURL, getTestURL, open, open, openForEs6Url, openProduction, openProductionWithTiming, openUrl, verifyScreenshotassertEquals, blur, checkLogsForErrors, checkLogsForErrors, clickElementWithJs, clickElementWithJs, drag, dragAndDrop, dragElementOver, executeScript, getLogEntries, getScrollX, getScrollY, hasCssClass, isElementPresent, scrollBy, scrollIntoViewAndClick, scrollToElement, waitForDevServer, waitForElementNotPresent, waitForElementPresent, waitForElementVisible, waitUntilNot, waitUntilNotgetDefaultCapabilities, getDesiredCapabilities, getHubURL, getRunOnHub, setDesiredCapabilitiesconcatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrapprotected int getDeploymentPort()
getDeploymentPort in class AbstractTestBenchTestpublic void openDemoPageAndCheckForErrors()
protected void verifyThemeVariantsBeingToggled()
ComponentDemoTest.DefaultProducer.
The test will fail if a specific variant demo is not added first with
DemoView.addVariantsDemo(Supplier, BiConsumer, BiConsumer, Function, Enum[])
method.
Copyright © 2000–2025 Vaadin Ltd. All rights reserved.