This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 491d173b7 [#4914] fix(web): fix testCheckLinkDocs test case issue 
(#4915)
491d173b7 is described below

commit 491d173b7118436712e3e5d3cb6ded899d6b9df4
Author: Qian Xia <[email protected]>
AuthorDate: Thu Sep 12 00:08:14 2024 +0800

    [#4914] fix(web): fix testCheckLinkDocs test case issue (#4915)
    
    ### 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";>
---
 .../apache/gravitino/integration/test/web/ui/pages/MetalakePage.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
 
b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
index 45fb12dea..95153495b 100644
--- 
a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
+++ 
b/web/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);
 

Reply via email to