[E2E] Modify the tenant delete of the e2e case (#7921)

* Update UserE2ETest.java
dailidong-patch-1
janeHe13 2022-01-10 17:06:32 +08:00 committed by GitHub
parent f5aca0f11b
commit 1ff339f37b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 14 deletions

View File

@ -25,6 +25,7 @@ import static org.awaitility.Awaitility.await;
import org.apache.dolphinscheduler.e2e.core.DolphinScheduler;
import org.apache.dolphinscheduler.e2e.pages.LoginPage;
import org.apache.dolphinscheduler.e2e.pages.common.NavBarPage;
import org.apache.dolphinscheduler.e2e.pages.security.SecurityPage;
import org.apache.dolphinscheduler.e2e.pages.security.TenantPage;
import org.apache.dolphinscheduler.e2e.pages.security.UserPage;
@ -65,10 +66,10 @@ class UserE2ETest {
@AfterAll
public static void cleanup() {
new SecurityPage(browser)
new NavBarPage(browser)
.goToNav(SecurityPage.class)
.goToTab(TenantPage.class)
.delete(tenant)
;
.delete(tenant);
}
@Test

View File

@ -49,20 +49,9 @@ class WorkerGroupE2ETest {
new LoginPage(browser)
.login("admin", "dolphinscheduler123")
.goToNav(SecurityPage.class)
.goToTab(TenantPage.class)
.create(tenant)
.goToNav(SecurityPage.class)
.goToTab(WorkerGroupPage.class);
}
@AfterAll
public static void cleanup() {
new SecurityPage(browser)
.goToTab(TenantPage.class)
.delete(tenant)
;
}
@Test
@Order(1)
void testCreateWorkerGroup() throws InterruptedException {