kevin85421 opened a new pull request #596: URL: https://github.com/apache/submarine/pull/596
### What is this PR for? Currently, some frontend E2E tests determine whether a test passes or fails based on a hard-coded URL and port. Take dataIT as an example, the following code hard-coded the expected URL to "http://localhost:8080/workbench/data". However, we cannot ensure that Submarine Workbench will always run on "http://localhost:8080". Hence, this issue aims to change the hard-coded URL to a soft-coded URL. ``` Assert.assertEquals(driver.getCurrentUrl(),"http://localhost:8080/workbench/data"); ``` Hardcoding vs Softcoding: https://simplicable.com/new/hardcoding-vs-softcoding ### What type of PR is it? [Improvement] ### Todos ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-841 ### How should this be tested? * Run workbench on $URL:$WORKBENCH_PORT (These two variables are specified in `run_frontend_e2e.sh`) ``` cd submarine-cloud-v2 ./hack/run_frontend_e2e.sh $[testcase] # Example: ./hack/run_frontend_e2e.sh loginIT ./hack/run_frontend_e2e.sh environmentIT ``` ### Screenshots (if appropriate) <img width="963" alt="ζͺε 2021-05-31 δΈε8 40 04" src="https://user-images.githubusercontent.com/20109646/120196922-fe085d80-c252-11eb-9aed-17a52c42478a.png"> ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? No * Does this need new documentation? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
