File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
e2e-tests/src/main/java/io/kafbat/ui/screens/schemas Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ public class SchemaCreateForm extends BasePage {
36
36
protected ElementsCollection visibleMarkers =
37
37
$$x ("//div[@class='ace_scroller']//div[contains(@class,'codeMarker')]" );
38
38
protected ElementsCollection elementsCompareVersionDdl = $$x ("//ul[@role='listbox']/ul/li" );
39
- protected String ddlElementLocator = "//ul/li[text()='Version %s']" ;
39
+ protected String versionDdlElementLocator = "//ul/li[text()='Version %s']" ;
40
+ protected String ddlElementLocator = "//li[@value='%s']" ;
40
41
41
42
@ Step
42
43
public SchemaCreateForm waitUntilScreenReady () {
@@ -96,8 +97,8 @@ public int getVersionsNumberFromList() {
96
97
97
98
@ Step
98
99
public SchemaCreateForm selectVersionFromDropDown (int versionNumberDd ) {
99
- $x (String .format (ddlElementLocator , versionNumberDd )).shouldBe (Condition .visible ).click ();
100
- sleep ( 1000 );
100
+ $x (String .format (versionDdlElementLocator , versionNumberDd )).shouldBe (Condition .visible ).click ();
101
+ waitUntilSpinnerDisappear ( 1 );
101
102
return this ;
102
103
}
103
104
You can’t perform that action at this time.
0 commit comments