uncommented details page tests and corrected selenium workflow paths (#1616)

This commit is contained in:
parthp2107 2021-12-08 11:54:44 +05:30 committed by GitHub
parent a3e7963543
commit d069ab72e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 14 deletions

View File

@ -18,12 +18,12 @@ on:
push:
branches: [main]
paths:
- 'openmetadata-ui/src/main/resource/ui/**'
- 'openmetadata-ui/src/main/resources/ui/**'
- 'openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/pages/**'
pull_request:
branches: [main]
paths:
- 'openmetadata-ui/src/main/resource/ui/**'
- 'openmetadata-ui/src/main/resources/ui/**'
- 'openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/pages/**'
jobs:

View File

@ -187,9 +187,9 @@ public class DashboardDetailsPageTest {
Events.click(webDriver, By.cssSelector("[data-testid='data-name']"));
Thread.sleep(waitTime);
Events.click(webDriver, By.cssSelector("[data-testid='breadcrumb-link']"));
// Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
// Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
// Events.click(webDriver, By.cssSelector("[data-testid='save']"));
Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
Events.click(webDriver, By.cssSelector("[data-testid='save']"));
for (int i = 1; i <= 3; i++) { //check topics in service
Events.click(webDriver, By.xpath("(//tr[@data-testid='column']//td[1]/a)" + "[" + i + "]")); // dashboards
Thread.sleep(waitTime);

View File

@ -164,9 +164,9 @@ public class PipelineDetailsPageTest {
Events.click(webDriver, By.cssSelector("[data-testid='data-name'][id ='sample_airflowdim_product_etl']"));
Thread.sleep(waitTime);
Events.click(webDriver, By.cssSelector("[data-testid='breadcrumb-link']"));
// Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
// Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
// Events.click(webDriver, By.cssSelector("[data-testid='save']"));
Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
Events.click(webDriver, By.cssSelector("[data-testid='save']"));
for (int i = 1; i <= 3; i++) { //check topics in service
Events.click(webDriver, By.xpath("(//tr[@data-testid='column']//td[1]/a)" + "[" + i + "]")); // pipelines
Thread.sleep(waitTime);

View File

@ -206,9 +206,9 @@ public class TableDetailsPageTest {
openExplorePage();
Events.click(webDriver, By.xpath("(//a[@data-testid='table-link'])[last()]"));
Events.click(webDriver, By.cssSelector("[data-testid='breadcrumb-link']"));
// Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
// Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
// Events.click(webDriver, By.cssSelector("[data-testid='save']"));
Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
Events.click(webDriver, By.cssSelector("[data-testid='save']"));
Events.click(webDriver, By.xpath("(//tr[@data-testid='column']//td[1]/a)[1]")); // database
// Events.click(webDriver, By.cssSelector("[data-testid='description-edit-button']")); // edit description
// Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());

View File

@ -162,9 +162,9 @@ public class TopicDetailsPageTest {
wait.until(ExpectedConditions.elementToBeClickable(By.cssSelector("[data-testid='breadcrumb-link']")));
Events.click(webDriver, By.cssSelector("[data-testid='breadcrumb-link']"));
wait.until(ExpectedConditions.elementToBeClickable(By.cssSelector("[data-testid='description-edit']")));
// Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
// Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
// Events.click(webDriver, By.cssSelector("[data-testid='save']"));
Events.click(webDriver, By.cssSelector("[data-testid='description-edit']")); // edit description
Events.sendKeys(webDriver, By.xpath(enterDescription), faker.address().toString());
Events.click(webDriver, By.cssSelector("[data-testid='save']"));
for (int i = 1; i <= 3; i++) { //check topics in service
Events.click(webDriver, By.xpath("(//tr[@data-testid='column']//td[1]/a)" + "[" + i + "]")); // topics
Thread.sleep(waitTime);