Skip to content

Commit

Permalink
[#5141][#5142][#5143] web(ui): Add support for creating, editing, and…
Browse files Browse the repository at this point in the history
… deleting schema
  • Loading branch information
LauraXia123 committed Oct 17, 2024
1 parent e9acd15 commit 5643bb3
Show file tree
Hide file tree
Showing 7 changed files with 697 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void setCatalogPropsAt(int index, String key, String value) {

public void clickViewCatalogBtn(String name) {
try {
String xpath = "//button[@data-refer='view-catalog-" + name + "']";
String xpath = "//button[@data-refer='view-entity-" + name + "']";
WebElement btn = driver.findElement(By.xpath(xpath));
WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
Expand All @@ -196,7 +196,7 @@ public void clickViewCatalogBtn(String name) {

public void clickEditCatalogBtn(String name) {
try {
String xpath = "//button[@data-refer='edit-catalog-" + name + "']";
String xpath = "//button[@data-refer='edit-entity-" + name + "']";
WebElement btn = driver.findElement(By.xpath(xpath));
WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
Expand All @@ -208,7 +208,7 @@ public void clickEditCatalogBtn(String name) {

public void clickDeleteCatalogBtn(String name) {
try {
String xpath = "//button[@data-refer='delete-catalog-" + name + "']";
String xpath = "//button[@data-refer='delete-entity-" + name + "']";
WebElement btn = driver.findElement(By.xpath(xpath));
WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
Expand Down
Loading

0 comments on commit 5643bb3

Please sign in to comment.