[e2e] Fix openTopic() method to wait element (#2809)

This commit is contained in:
Vlad Senyuta 2022-10-24 11:13:06 +03:00 committed by GitHub
parent d60808a2f2
commit a2e87cc8d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -35,7 +35,8 @@ public class KafkaConnectList {
@Step
public KafkaConnectList openConnector(String connectorName) {
$x(String.format(tabElementLocator,connectorName)).shouldBe(Condition.visible).click();
$x(String.format(tabElementLocator,connectorName))
.shouldBe(Condition.enabled).click();
return this;
}

View file

@ -30,7 +30,8 @@ public class SchemaRegistryList {
@Step
public SchemaRegistryList openSchema(String schemaName) {
$x(String.format(schemaTabElementLocator,schemaName)).shouldBe(Condition.visible).click();
$x(String.format(schemaTabElementLocator,schemaName))
.shouldBe(Condition.enabled).click();
return this;
}

View file

@ -42,7 +42,8 @@ public class TopicsList {
@Step
public TopicsList openTopic(String topicName) {
$(By.linkText(topicName)).click();
$(By.linkText(topicName))
.shouldBe(Condition.enabled).click();
return this;
}
}