|
@@ -1,6 +1,7 @@
|
|
|
package com.provectus.kafka.ui.smokesuite.ksqldb;
|
|
|
|
|
|
import static com.provectus.kafka.ui.pages.ksqldb.enums.KsqlMenuTabs.STREAMS;
|
|
|
+import static com.provectus.kafka.ui.pages.ksqldb.enums.KsqlQueryConfig.SHOW_STREAMS;
|
|
|
import static com.provectus.kafka.ui.pages.ksqldb.enums.KsqlQueryConfig.SHOW_TABLES;
|
|
|
import static com.provectus.kafka.ui.pages.panels.enums.MenuItem.KSQL_DB;
|
|
|
import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
|
|
@@ -80,24 +81,16 @@ public class KsqlDbTest extends BaseTest {
|
|
|
softly.assertAll();
|
|
|
}
|
|
|
|
|
|
- @QaseId(86)
|
|
|
+ @QaseId(278)
|
|
|
@Test(priority = 4)
|
|
|
- public void clearResultsForExecutedRequest() {
|
|
|
- navigateToKsqlDbAndExecuteRequest(SHOW_TABLES.getQuery());
|
|
|
+ public void checkShowStreamsRequestExecution() {
|
|
|
+ navigateToKsqlDbAndExecuteRequest(SHOW_STREAMS.getQuery());
|
|
|
SoftAssert softly = new SoftAssert();
|
|
|
softly.assertTrue(ksqlQueryForm.areResultsVisible(), "areResultsVisible()");
|
|
|
- softly.assertAll();
|
|
|
- ksqlQueryForm
|
|
|
- .clickClearResultsBtn();
|
|
|
- softly.assertFalse(ksqlQueryForm.areResultsVisible(), "areResultsVisible()");
|
|
|
+ softly.assertTrue(ksqlQueryForm.getItemByName(DEFAULT_STREAM.getName()).isVisible(), "getItemByName()");
|
|
|
softly.assertAll();
|
|
|
}
|
|
|
|
|
|
- @AfterClass(alwaysRun = true)
|
|
|
- public void afterClass() {
|
|
|
- TOPIC_NAMES_LIST.forEach(topicName -> apiService.deleteTopic(topicName));
|
|
|
- }
|
|
|
-
|
|
|
@QaseId(86)
|
|
|
@Test(priority = 5)
|
|
|
public void clearResultsForExecutedRequest() {
|
|
@@ -111,6 +104,11 @@ public class KsqlDbTest extends BaseTest {
|
|
|
softly.assertAll();
|
|
|
}
|
|
|
|
|
|
+ @AfterClass(alwaysRun = true)
|
|
|
+ public void afterClass() {
|
|
|
+ TOPIC_NAMES_LIST.forEach(topicName -> apiService.deleteTopic(topicName));
|
|
|
+ }
|
|
|
+
|
|
|
@Step
|
|
|
private void navigateToKsqlDbAndExecuteRequest(String query) {
|
|
|
naviSideBar
|