Skip to content

Commit

Permalink
[Improve] e2e minor improvement (#4048)
Browse files Browse the repository at this point in the history
* [Improve] e2e minor improvement

* [Improve] role page minor improvement
  • Loading branch information
wolfboys authored Sep 9, 2024
1 parent 7c2334f commit 613ae07
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ jobs:
class: org.apache.streampark.e2e.cases.AlarmTest
- name: UserManagementTest
class: org.apache.streampark.e2e.cases.UserManagementTest
#- name: RoleManagementTest
# class: org.apache.streampark.e2e.cases.RoleManagementTest
- name: RoleManagementTest
class: org.apache.streampark.e2e.cases.RoleManagementTest
- name: TeamManagementTest
class: org.apache.streampark.e2e.cases.TeamManagementTest
- name: MemberManagementTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
},
];
});

const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
name: 'role_form',
labelWidth: 120,
colon: true,
baseColProps: { span: 22 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public ApplicationsPage(RemoteWebDriver driver) {
public ApplicationForm createApplication() {
waitForPageLoading();

new WebDriverWait(driver, Constants.DEFAULT_WEBDRIVER_WAIT_DURATION)
.until(ExpectedConditions.elementToBeClickable(buttonCreateApplication));

buttonCreateApplication.click();
new WebDriverWait(driver, Constants.DEFAULT_WEBDRIVER_WAIT_DURATION)
.until(ExpectedConditions.urlContains("/flink/app/add"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public ProjectsPage createProject(String projectName,
String projectBuildArgument,
String projectDescription) {
waitForPageLoading();

new WebDriverWait(driver, Constants.DEFAULT_WEBDRIVER_WAIT_DURATION)
.until(ExpectedConditions.elementToBeClickable(buttonCreateProject));

buttonCreateProject.click();
new WebDriverWait(driver, Constants.DEFAULT_WEBDRIVER_WAIT_DURATION)
.until(ExpectedConditions.urlContains("/project/add"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ public class CreateRoleForm {
PageFactory.initElements(driver, this);
}

@FindBy(id = "form_item_roleName")
@FindBy(id = "role_form_roleName")
private WebElement inputRoleName;

@FindBy(id = "form_item_description")
@FindBy(id = "role_form_description")
private WebElement inputDescription;

@FindBys({
Expand Down

0 comments on commit 613ae07

Please sign in to comment.