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 (#5164)

### What changes were proposed in this pull request?
Add support for creating, editing, and deleting schema
<img width="831" alt="image"
src="https://github.com/user-attachments/assets/8194b0e1-0da4-4ed3-967a-3f7467745681">
<img width="1168" alt="image"
src="https://github.com/user-attachments/assets/e4735560-c928-4bbc-8452-aab82a0559b1">
<img width="613" alt="image"
src="https://github.com/user-attachments/assets/90c04707-a0be-47dc-a425-233759eab84f">
<img width="752" alt="image"
src="https://github.com/user-attachments/assets/59ec3f21-b3f9-4a2d-bf0b-44c396db1555">
<img width="954" alt="image"
src="https://github.com/user-attachments/assets/6b7993c1-9848-435e-8cc0-874f3a70195b">
<img width="1149" alt="image"
src="https://github.com/user-attachments/assets/889287f1-d4e9-45b2-8e7b-18970b42f108">


### Why are the changes needed?
N/A

Fix: #5141, #5142, #5143

### Does this PR introduce _any_ user-facing change?
N/A

### How was this patch tested?
manually
  • Loading branch information
LauraXia123 authored Oct 22, 2024
1 parent 51e42ea commit ab3e7cd
Show file tree
Hide file tree
Showing 9 changed files with 730 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,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 @@ -198,7 +198,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 @@ -210,7 +210,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 ab3e7cd

Please sign in to comment.