This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.6 by this push:
new 3b8b22385 [#4914] fix(web): fix testCheckLinkDocs test case issue
(#4919)
3b8b22385 is described below
commit 3b8b22385d56bc998ddc46ceff3085754b33ee90
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Sep 11 10:40:26 2024 -0700
[#4914] fix(web): fix testCheckLinkDocs test case issue (#4919)
### What changes were proposed in this pull request?
fix testCheckLinkDocs test case issue
### Why are the changes needed?
The test case testCheckLinkDocs failed
Fix: #4914
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
<img width="1377" alt="image"
src="https://github.com/user-attachments/assets/95926ef0-d28e-4187-9866-14d2b949b47b">
Co-authored-by: Qian Xia <[email protected]>
---
.../apache/gravitino/integration/test/web/ui/pages/MetalakePage.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
b/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
index 45fb12dea..95153495b 100644
---
a/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
+++
b/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
@@ -378,7 +378,7 @@ public class MetalakePage extends AbstractWebIT {
String actualUrl = driver.getCurrentUrl();
if (contains) {
- return actualUrl.contains(expectedUrl);
+ return expectedUrl.contains(actualUrl.replaceAll("/[^/]+/$", "/"));
}
return actualUrl.equals(expectedUrl);