Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-841

Modify hard-coded URLs in frontend E2E test to soft-coded URLs

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              khchen Kai-Hsun Chen
              khchen Kai-Hsun Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: