Remove API call after Python Django preview widget has been fixed #16076
Labels
area/qe
kind/enhancement
A feature request - must adhere to the feature request template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your enhancement related to a problem? Please describe.
#15053
Describe the solution you'd like
Remove the Axios GET and replace it with UI test directly inside the IDE.
Currently we are getting the URL from DialogWindow and then closing it while we call GET for modified preview URL to verify that we get
200
HTML code.I want to remove the Axios get and click OpenLink in DialogWindow instead to verify the content inside the PreviewWidget directly
Describe alternatives you've considered
alternative would be to leave the test as it is - I'm strongly against this alternative
Additional context
Currently the default index page for Python Django deployment returns 404 but also sends page content. This messes up the PreviewWidget, causing it to display a default blank page instead of showing the page content. Until this is fixed, the current test logic is a workaround.
https://github.com/eclipse/che/pull/15831/files#diff-9debcc656c7ef9f0b57e073cf6a73c4bR36
The text was updated successfully, but these errors were encountered: