Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
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
Attachments
Issue Links
- is a child of
-
SUBMARINE-776 Operator Testing framework
- Resolved
-
SUBMARINE-180 [Umbrella] Submarine E2E Test Framework
- Resolved
- links to