Questions tagged [vaadin-testbench]

12 questions
2
votes
2 answers

Running E2E-Tests in parallel

we are trying to run Selenium-Tests on Browserstack against an AWS-Vaadin-App on several Jenkins slaves in parallel. Companies-Jenkins -> Browserstack -> AWS-Vaadin-App Our test framework uses the Vaadin Testbench with a valid license key. All…
myborobudur
  • 4,385
  • 8
  • 40
  • 61
2
votes
1 answer

Dependency Injection in a TestBenchTestCase

I am starting to create integration tests for my Vaadin Flow application using TestBench, and one of the things I want to test is a successful login. In order to test the login with valid credentials, I need to provide my credentials. But I really…
1
vote
1 answer

Changes during UI.access() are not pushed during Unit Test

I have the following view class: @Route(value = NewsAdminView.ROUTE) @RequiredArgsConstructor public class NewsAdminView extends VerticalLayout { public static final String ROUTE = ""; private final NewsService service; final Grid
1
vote
0 answers

Bug in Vaadin TestBench GridElement

I want to read the texts of all columns of a table row. My code: // does not work: t.getFirstVisibleRowIndex() List columns = t.getAllColumns(); for (int col = 0; col < columns.size(); col++) { …
gastendonk
  • 23
  • 5
1
vote
1 answer

Finding a Dialog from a context using TestBench

I'm looking for a way to find a DialogElement from a child context. Finding it from the "root" context is working fine, but I'm building a Page component for testing and when I try to find the DialogElement using the $(DialogElement.class) approach…
Balazs
  • 185
  • 1
  • 3
  • 10
0
votes
0 answers

Testing text on vcf-nav-item with child items

I'm developing tests with Vaadin TestBench and I'm having difficulties with a particular scenario. For the given generated HTML (adapted from a vaadin/vcf-nav GitHub repository example): Main menu
0
votes
0 answers

Vaadin TestBench: Access input field in Vaadin grid

A Vaadin grid contains an input field. How to enter into this input field with Vaadin Testbench 23.1.15? The GridTHTDElement Java class does not provide any methods for this.
gastendonk
  • 23
  • 5
0
votes
1 answer

Don't show Vaadin messages during TestBench test run (@PreserveOnRefresh, reload)

How can I get rid of the dismiss messages displayed during a Vaadin TestBench test run in the right lower corner? Clicking by human does not help. Messages will appear on next test run. image: dismiss messages @PreserveOnRefresh enabled Java live…
gastendonk
  • 23
  • 5
0
votes
1 answer

Vaadin Testbench 23 seems to require Selenium 4.1.2 but maven is loading 3.141.59 according to the pom

In my pom.xml I have: 18 23.0.6 ... com.vaadin vaadin-testbench
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
0
votes
1 answer

executeJavascript in Vaadin Testbench

when I try to get via UI.getCurrent().getPage() to executeJs , it says getPage() (or something above is null). How can I execute Javascript Commands in Testbench then?
Sebastian G.
  • 616
  • 1
  • 7
  • 25
0
votes
1 answer

Vaadin Notification blocks access to elements behind it

I am working currently on a Vaadin Testbench infrastructure, and the GUI I am testing is written in Vaadin 7/8. There is a simple Notification (HUMANIZED_MESSAGE) that comes from UI (Vaadin 7/8) - as you can see in the screenshot attached. The…
george petre
  • 11
  • 1
  • 4
0
votes
2 answers

Vaadin TestBench MenuBarElement - Not able to Select sub-menus with Integration Test

I am implementing Vaadin Integration Test Case for the Menu Item as shown below MenuBar.MenuItem homeMenu = menuItem.addItem("Home", null, null); homeMenu.addItem("Dashboard", homeMenuCommand); homeMenu.addItem("UserForm",…
Manushi
  • 597
  • 1
  • 7
  • 26