add brokersSourceInfoCheck
This commit is contained in:
parent
aec089503f
commit
836671484e
4 changed files with 41 additions and 7 deletions
|
@ -16,6 +16,8 @@ import java.util.stream.Stream;
|
|||
|
||||
public class BrokersConfigTab extends BasePage {
|
||||
|
||||
protected SelenideElement sourceInfoIcon = $x("//div[text()='Source']/..//div/div[@class]");
|
||||
protected SelenideElement sourceInfoTooltip = $x("//div[text()='Source']/..//div/div[@style]");
|
||||
protected ElementsCollection editBtns = $$x("//button[@aria-label='editAction']");
|
||||
|
||||
@Step
|
||||
|
@ -25,6 +27,17 @@ public class BrokersConfigTab extends BasePage {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Step
|
||||
public BrokersConfigTab hoverOnSourceInfoIcon() {
|
||||
sourceInfoIcon.shouldBe(Condition.visible).hover();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Step
|
||||
public String getSourceInfoTooltipText() {
|
||||
return sourceInfoTooltip.shouldBe(Condition.visible).getText().trim();
|
||||
}
|
||||
|
||||
@Step
|
||||
public boolean isSearchByKeyVisible() {
|
||||
return isVisible(searchFld);
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
package com.provectus.kafka.ui.variables;
|
||||
|
||||
public interface Expected {
|
||||
|
||||
String brokerSourceInfoTooltip =
|
||||
"DYNAMIC_TOPIC_CONFIG = dynamic topic config that is configured for a specific topic\n"
|
||||
+ "DYNAMIC_BROKER_LOGGER_CONFIG = dynamic broker logger config that is configured for a specific broker\n"
|
||||
+ "DYNAMIC_BROKER_CONFIG = dynamic broker config that is configured for a specific broker\n"
|
||||
+
|
||||
"DYNAMIC_DEFAULT_BROKER_CONFIG = dynamic broker config that is configured as default for all brokers in the cluster\n"
|
||||
+
|
||||
"STATIC_BROKER_CONFIG = static broker config provided as broker properties at start up (e.g. server.properties file)\n"
|
||||
+ "DEFAULT_CONFIG = built-in default configuration for configs that have a default value\n"
|
||||
+ "UNKNOWN = source unknown e.g. in the ConfigEntry used for alter requests where source is not set";
|
||||
}
|
|
@ -41,13 +41,6 @@ public class SmokeBacklog extends BaseManualTest {
|
|||
public void testCaseD() {
|
||||
}
|
||||
|
||||
@Automation(state = TO_BE_AUTOMATED)
|
||||
@Suite(id = BROKERS_SUITE_ID)
|
||||
@QaseId(331)
|
||||
@Test
|
||||
public void testCaseE() {
|
||||
}
|
||||
|
||||
@Automation(state = TO_BE_AUTOMATED)
|
||||
@Suite(id = BROKERS_SUITE_ID)
|
||||
@QaseId(332)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.provectus.kafka.ui.smokesuite.brokers;
|
||||
|
||||
import static com.provectus.kafka.ui.pages.brokers.BrokersDetails.DetailsTab.CONFIGS;
|
||||
import static com.provectus.kafka.ui.variables.Expected.brokerSourceInfoTooltip;
|
||||
|
||||
import com.codeborne.selenide.Condition;
|
||||
import com.provectus.kafka.ui.BaseTest;
|
||||
|
@ -69,4 +70,16 @@ public class BrokersTest extends BaseTest {
|
|||
.toList().contains(anyConfigKey),
|
||||
String.format("getAllConfigs().contains(%s)", anyConfigKey));
|
||||
}
|
||||
|
||||
@QaseId(331)
|
||||
@Test
|
||||
public void brokersSourceInfoCheck() {
|
||||
navigateToBrokersAndOpenDetails(DEFAULT_BROKER_ID);
|
||||
brokersDetails
|
||||
.openDetailsTab(CONFIGS);
|
||||
String sourceInfoTooltip = brokersConfigTab
|
||||
.hoverOnSourceInfoIcon()
|
||||
.getSourceInfoTooltipText();
|
||||
Assert.assertEquals(sourceInfoTooltip, brokerSourceInfoTooltip, "brokerSourceInfoTooltip");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue