Browse Source

[Fix] Fix Token E2E Bug (#13069)

* fix token e2e error
旺阳 2 years ago
parent
commit
82c86a985e

+ 1 - 1
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/security/TokenPage.java

@@ -80,8 +80,8 @@ public final class TokenPage extends NavBarPage implements Tab {
                         userName)))
                         userName)))
                 .click();
                 .click();
 
 
-        createTokenForm().buttonGenerateToken().click();
         new WebDriverWait(driver, 10).until(ExpectedConditions.elementToBeClickable(createTokenForm().buttonGenerateToken()));
         new WebDriverWait(driver, 10).until(ExpectedConditions.elementToBeClickable(createTokenForm().buttonGenerateToken()));
+        createTokenForm().buttonGenerateToken().click();
 
 
         createTokenForm().buttonSubmit().click();
         createTokenForm().buttonSubmit().click();