File tree 2 files changed +6
-2
lines changed
main/java/io/kafbat/ui/screens/schemas
test/java/io/kafbat/ui/smokesuite/schemas 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ 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 = "//li[@value=' %s']" ;
39
+ protected String ddlElementLocator = "//ul/ li[text()='Version %s']" ;
40
40
41
41
@ Step
42
42
public SchemaCreateForm waitUntilScreenReady () {
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public void updateSchemaAvroCheck() {
57
57
AVRO_SCHEMA .setValuePath (
58
58
System .getProperty ("user.dir" ) + "/src/main/resources/testdata/schemas/schema_avro_update.json" );
59
59
navigateToSchemaRegistryAndOpenDetails (AVRO_SCHEMA .getName ());
60
+ int latestVersion = schemaDetails
61
+ .getLatestVersion ();
60
62
schemaDetails
61
63
.openEditSchema ();
62
64
schemaCreateForm
@@ -72,8 +74,10 @@ public void updateSchemaAvroCheck() {
72
74
.clickSubmitButton ();
73
75
schemaDetails
74
76
.waitUntilScreenReady ();
75
- Assert .assertEquals (schemaDetails .getCompatibility (), CompatibilityLevel .CompatibilityEnum .NONE .toString (),
77
+ softly .assertEquals (schemaDetails .getLatestVersion (), latestVersion + 1 , "getLatestVersion()" );
78
+ softly .assertEquals (schemaDetails .getCompatibility (), CompatibilityLevel .CompatibilityEnum .NONE .toString (),
76
79
"getCompatibility()" );
80
+ softly .assertAll ();
77
81
}
78
82
79
83
@ Test (priority = 3 )
You can’t perform that action at this time.
0 commit comments