Interface TesterWrappers
- All Known Implementing Classes:
BrowserlessClassExtension,BrowserlessExtension,BrowserlessTest,BrowserlessUIContext,QuarkusBrowserlessTest,SpringBrowserlessTest
test(component).- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidHook for context-bound implementations to install Vaadin thread-locals before a component is wrapped in a tester.default PopoverTesterpopoverFor(ComponentQuery<? extends Component> query) Wraps the given component in a tester.default PopoverTesterpopoverFor(Component target) Wraps the given component in a tester.default AccordionTester<Accordion> Wraps the given component in a tester.default AvatarGroupTester<AvatarGroup> test(AvatarGroup avatarGroup) Wraps the given component in a tester.default BreadcrumbsTester<Breadcrumbs> test(Breadcrumbs breadcrumbs) Wraps the given component in a tester.default ButtonTester<Button> Wraps the given component in a tester.default CardTester<Card> Wraps the given component in a tester.default CheckboxTester<Checkbox> Wraps the given component in a tester.default <V> CheckboxGroupTester<CheckboxGroup<V>, V> test(CheckboxGroup<V> checkboxGroup) Wraps the given component in a tester.default <V> CheckboxGroupTester<CheckboxGroup<V>, V> test(CheckboxGroup checkboxGroup, Class<V> valueType) Wraps the given component in a tester.default SwitchTester<Switch> Wraps the given component in a tester.default <V> ComboBoxTester<ComboBox<V>, V> Wraps the given component in a tester.default <V> ComboBoxTester<ComboBox<V>, V> Wraps the given component in a tester.default <V> MultiSelectComboBoxTester<MultiSelectComboBox<V>, V> test(MultiSelectComboBox<V> comboBox) Wraps the given component in a tester.default <V> MultiSelectComboBoxTester<MultiSelectComboBox<V>, V> test(MultiSelectComboBox comboBox, Class<V> valueType) Wraps the given component in a tester.default ConfirmDialogTestertest(ConfirmDialog confirmDialog) Wraps the given component in a tester.default ContextMenuTester<ContextMenu> test(ContextMenu contextMenu) Wraps the given component in a tester.default DatePickerTester<DatePicker> test(DatePicker datePicker) Wraps the given component in a tester.default DateTimePickerTester<DateTimePicker> test(DateTimePicker dateTimePicker) Wraps the given component in a tester.default DetailsTester<Details> Wraps the given component in a tester.default DialogTesterWraps the given component in a tester.default <V> GridContextMenuTester<GridContextMenu<V>, V> test(GridContextMenu<V> gridContextMenu) Create a tester for the given GridContextMenu instance.default <V> GridTester<Grid<V>, V> Wraps the given component in a tester.default <V> GridTester<Grid<V>, V> Wraps the given component in a tester.default AnchorTesterWraps the given component in a tester.default DescriptionListTestertest(DescriptionList descriptionList) Wraps the given component in a tester.default DivTesterWraps the given component in a tester.default EmphasisTesterWraps the given component in a tester.default H1TesterWraps the given component in a tester.default H2TesterWraps the given component in a tester.default H3TesterWraps the given component in a tester.default H4TesterWraps the given component in a tester.default H5TesterWraps the given component in a tester.default H6TesterWraps the given component in a tester.default HrTesterWraps the given component in a tester.default ImageTesterWraps the given component in a tester.default InputTesterWraps the given component in a tester.default ListItemTesterWraps the given component in a tester.default NativeButtonTestertest(NativeButton nativeButton) Wraps the given component in a tester.default NativeDetailsTestertest(NativeDetails nativeDetails) Wraps the given component in a tester.default NativeLabelTestertest(NativeLabel label) Wraps the given component in a tester.default OrderedListTestertest(OrderedList orderedList) Wraps the given component in a tester.default ParagraphTesterWraps the given component in a tester.default PreTesterWraps the given component in a tester.default RangeInputTestertest(RangeInput input) Wraps the given component in a tester.default SpanTesterWraps the given component in a tester.default UnorderedListTestertest(UnorderedList unorderedList) Wraps the given component in a tester.default <V> ListBoxTester<ListBox<V>, V> Wraps the given component in a tester.default <V> MultiSelectListBoxTester<MultiSelectListBox<V>, V> test(MultiSelectListBox<V> multiSelectListBox) Wraps the given component in a tester.default <V> MultiSelectListBoxTester<MultiSelectListBox<V>, V> test(MultiSelectListBox multiSelectListBox, Class<V> valueType) Wraps the given component in a tester.default LoginFormTester<LoginForm> Wraps the given component in a tester.default LoginOverlayTester<LoginOverlay> test(LoginOverlay loginOverlay) Wraps the given component in a tester.default MarkdownTester<Markdown> Wraps the given component in a tester.test(MasterDetailLayout masterDetailLayout) Wraps the given component in a tester.default MessageInputTester<MessageInput> test(MessageInput messageInput) Wraps the given component in a tester.default MessageListTester<MessageList> test(MessageList messageList) Wraps the given component in a tester.default NotificationTester<Notification> test(Notification notification) Wraps the given component in a tester.default PopoverTesterWraps the given component in a tester.default <V> RadioButtonGroupTester<RadioButtonGroup<V>, V> test(RadioButtonGroup<V> radioButtonGroup) Wraps the given component in a tester.default <V> RadioButtonGroupTester<RadioButtonGroup<V>, V> test(RadioButtonGroup radioButtonGroup, Class<V> valueType) Wraps the given component in a tester.default <V> SelectTester<Select<V>, V> Wraps the given component in a tester.default <V> SelectTester<Select<V>, V> Wraps the given component in a tester.default SideNavTester<SideNav> Wraps the given component in a tester.test(DecimalRangeSlider rangeSlider) Wraps the given component in a tester.default DecimalSliderTester<DecimalSlider> test(DecimalSlider slider) Wraps the given component in a tester.test(IntegerRangeSlider integerRangeSlider) Wraps the given component in a tester.default IntegerSliderTester<IntegerSlider> test(IntegerSlider integerSlider) Wraps the given component in a tester.default SplitLayoutTester<SplitLayout> test(SplitLayout splitLayout) Wraps the given component in a tester.default TabsTester<Tabs> Wraps the given component in a tester.default TabSheetTester<TabSheet> Wraps the given component in a tester.default TextTester<Text> Wraps the given component in a tester.default TextFieldTester<BigDecimalField, BigDecimal> test(BigDecimalField bigDecimalField) Wraps the given component in a tester.default TextFieldTester<EmailField, String> test(EmailField emailField) Wraps the given component in a tester.default NumberFieldTester<IntegerField, Integer> test(IntegerField integerField) Wraps the given component in a tester.default NumberFieldTester<NumberField, Double> test(NumberField numberField) Wraps the given component in a tester.default TextFieldTester<PasswordField, String> test(PasswordField passwordField) Wraps the given component in a tester.default TextAreaTester<TextArea> Wraps the given component in a tester.default TextFieldTester<TextField, String> Wraps the given component in a tester.default TimePickerTester<TimePicker> test(TimePicker timePicker) Wraps the given component in a tester.default <V> TreeGridTester<TreeGrid<V>, V> Create a tester for the given TreeGrid instance.default <V> TreeGridTester<TreeGrid<V>, V> Create a tester for the given TreeGrid instance.default UploadTester<Upload> Wraps the given component in a tester.default UploadButtonTester<UploadButton> test(UploadButton uploadButton) Create a tester for the given UploadButton instance.default UploadDropZoneTester<UploadDropZone> test(UploadDropZone uploadDropZone) Wraps the given component in a tester.default UploadFileListTester<UploadFileList> test(UploadFileList uploadFileList) Wraps the given component in a tester.default <V> VirtualListTester<VirtualList<V>, V> test(VirtualList<V> virtualList) Wraps the given component in a tester.default <V> VirtualListTester<VirtualList<V>, V> test(VirtualList virtualList, Class<V> itemType) Wraps the given component in a tester.default RouterLinkTester<RouterLink> test(RouterLink routerLink) Wraps the given component in a tester.
-
Method Details
-
activateTesterContext
default void activateTesterContext()Hook for context-bound implementations to install Vaadin thread-locals before a component is wrapped in a tester. Called by every typedtest(...)andpopoverFor(...)method of this interface and ofCommercialTesterWrappers. Default is a no-op. -
test
Wraps the given component in a tester.- Parameters:
accordion- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
avatarGroup- the component to wrap- Returns:
- a tester for the given component
- Since:
- 25.3
-
test
Wraps the given component in a tester.- Parameters:
breadcrumbs- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
button- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
card- the component to wrap- Returns:
- a tester for the given component
- Since:
- 25.3
-
test
Wraps the given component in a tester.- Parameters:
checkbox- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
checkboxGroup- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> CheckboxGroupTester<CheckboxGroup<V>,V> test(CheckboxGroup checkboxGroup, Class<V> valueType) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
checkboxGroup- the component to wrapvalueType- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
field- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
comboBox- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
comboBox- the component to wrapvalueType- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> MultiSelectComboBoxTester<MultiSelectComboBox<V>,V> test(MultiSelectComboBox<V> comboBox) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
comboBox- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> MultiSelectComboBoxTester<MultiSelectComboBox<V>,V> test(MultiSelectComboBox comboBox, Class<V> valueType) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
comboBox- the component to wrapvalueType- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
confirmDialog- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
datePicker- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
dateTimePicker- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
details- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
dialog- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
grid- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
grid- the component to wrapitemType- the type of the items in the component- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
listBox- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> MultiSelectListBoxTester<MultiSelectListBox<V>,V> test(MultiSelectListBox<V> multiSelectListBox) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
multiSelectListBox- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> MultiSelectListBoxTester<MultiSelectListBox<V>,V> test(MultiSelectListBox multiSelectListBox, Class<V> valueType) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
multiSelectListBox- the component to wrapvalueType- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
loginForm- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
loginOverlay- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
markdown- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
masterDetailLayout- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
messageInput- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
messageList- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
popover- the component to wrap- Returns:
- a tester for the given component
-
popoverFor
Wraps the given component in a tester.- Parameters:
target- the component to wrap- Returns:
- a tester for the given component
-
popoverFor
Wraps the given component in a tester.- Parameters:
query- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
notification- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> RadioButtonGroupTester<RadioButtonGroup<V>,V> test(RadioButtonGroup<V> radioButtonGroup) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
radioButtonGroup- the component to wrap- Returns:
- a tester for the given component
-
test
default <V> RadioButtonGroupTester<RadioButtonGroup<V>,V> test(RadioButtonGroup radioButtonGroup, Class<V> valueType) Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
radioButtonGroup- the component to wrapvalueType- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
routerLink- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
select- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
select- the component to wrapvalueType- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
rangeSlider- the component to wrap- Returns:
- a tester for the given component
- Since:
- 1.1
-
test
Wraps the given component in a tester.- Parameters:
integerRangeSlider- the component to wrap- Returns:
- a tester for the given component
- Since:
- 1.1
-
test
Wraps the given component in a tester.- Parameters:
slider- the component to wrap- Returns:
- a tester for the given component
- Since:
- 1.1
-
test
Wraps the given component in a tester.- Parameters:
integerSlider- the component to wrap- Returns:
- a tester for the given component
- Since:
- 1.1
-
test
Wraps the given component in a tester.- Parameters:
splitLayout- the component to wrap- Returns:
- a tester for the given component
- Since:
- 25.3
-
test
Wraps the given component in a tester.- Parameters:
tabs- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
tabSheet- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
text- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
integerField- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
numberField- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
textArea- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
textField- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
passwordField- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
emailField- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
bigDecimalField- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
timePicker- the component to wrap- Returns:
- a tester for the given component
-
test
Create a tester for the given TreeGrid instance.This overload is more specific than
test(Grid), so aTreeGridargument now yields aTreeGridTesterrather than aGridTester. Code that assigned the result to an explicitly typedGridTester<Grid<V>, V>no longer compiles and has to widen the declaration, usevar, or chain the call directly.- Type Parameters:
V- the type of the items in the TreeGrid- Parameters:
treeGrid- the TreeGrid instance to be tested- Returns:
- a TreeGridTester instance wrapping the given TreeGrid
- Since:
- 25.3
-
test
Create a tester for the given TreeGrid instance.This overload is more specific than
test(Grid, Class), so aTreeGridargument now yields aTreeGridTesterrather than aGridTester. Code that assigned the result to an explicitly typedGridTester<Grid<V>, V>no longer compiles and has to widen the declaration, usevar, or chain the call directly.- Type Parameters:
V- the type of the items in the TreeGrid- Parameters:
treeGrid- the TreeGrid instance to be testeditemType- the type of the items in the TreeGrid- Returns:
- a TreeGridTester instance wrapping the given TreeGrid
- Since:
- 25.3
-
test
Wraps the given component in a tester.- Parameters:
upload- the component to wrap- Returns:
- a tester for the given component
-
test
Create a tester for the given UploadButton instance.This overload is more specific than
test(Button), so anUploadButtonargument yields anUploadButtonTesterrather than aButtonTester. Code that assigned the result to an explicitly typedButtonTester<Button>no longer compiles and has to widen the declaration, usevar, or chain the call directly.- Parameters:
uploadButton- the UploadButton instance to be tested- Returns:
- an UploadButtonTester instance wrapping the given UploadButton
-
test
Wraps the given component in a tester.- Parameters:
uploadDropZone- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
uploadFileList- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
virtualList- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Type Parameters:
V- the type of the items in the component- Parameters:
virtualList- the component to wrapitemType- the type of the items in the component- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
anchor- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
descriptionList- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
div- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
emphasis- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
h1- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
h2- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
h3- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
h4- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
h5- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
h6- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
hr- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
image- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
input- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
input- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
label- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
listItem- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
nativeButton- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
nativeDetails- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
orderedList- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
paragraph- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
pre- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
span- the component to wrap- Returns:
- a tester for the given component
-
test
Wraps the given component in a tester.- Parameters:
unorderedList- the component to wrap- Returns:
- a tester for the given component
-