Package com.vaadin.flow.component.login
Class LoginOverlayTester<T extends LoginOverlay>
java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.login.AbstractLoginTester<T>
com.vaadin.flow.component.login.LoginOverlayTester<T>
- Type Parameters:
T
- component type
Tester for LoginOverlay components.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isOpen()
Check if login overlay is open.boolean
isUsable()
Validate that component can be interacted with and should be visible in the UI.protected void
notUsableReasons
(Consumer<String> collector) Provides messages explaining why the component is actually not usable.void
Open LoginOverlay to enable logging in through it.Methods inherited from class com.vaadin.flow.component.login.AbstractLoginTester
forgotPassword, login
Methods inherited from class com.vaadin.testbench.unit.ComponentTester
ensureComponentIsUsable, ensureVisible, find, findAllByQuery, findByQuery, fireDomEvent, fireDomEvent, fireDomEvent, getComponent, getField, getField, getMethod, getMethod, roundTrip, setModal
-
Constructor Details
-
LoginOverlayTester
Wrap given component for testing.- Parameters:
component
- target component
-
-
Method Details
-
isUsable
public boolean isUsable()Description copied from class:ComponentTester
Validate that component can be interacted with and should be visible in the UI. Subclasses overriding this method should also overrideComponentTester.notUsableReasons(Consumer)
to provide additional details to the potential exception thrown byComponentTester.ensureComponentIsUsable()
.- Overrides:
isUsable
in classComponentTester<T extends LoginOverlay>
- Returns:
true
if component can be interacted with by the user- See Also:
-
notUsableReasons
Description copied from class:ComponentTester
Provides messages explaining why the component is actually not usable. Subclasses overridingComponentTester.isUsable()
should also override this method to provide additional details to the potential exception throw byComponentTester.ensureComponentIsUsable()
.- Overrides:
notUsableReasons
in classComponentTester<T extends LoginOverlay>
- See Also:
-
openOverlay
public void openOverlay()Open LoginOverlay to enable logging in through it. -
isOpen
public boolean isOpen()Check if login overlay is open.- Returns:
true
if overlay is open and visible
-