Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Your changes will not be saved' alert window when trying to reload a web page #16100

Closed
4 of 23 tasks
SkorikSergey opened this issue Feb 21, 2020 · 10 comments
Closed
4 of 23 tasks
Assignees
Labels
area/qe kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@SkorikSergey
Copy link
Contributor

Describe the bug

'Your changes will not be saved' alert window when trying to reload web page. The cause of this issue are eclipse-che/che-theia#634 changes

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Start workspace from any devfile.
  2. Try to reload web page.

Expected behavior

The page was reloaded

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

screencast-che-eclipse-che 10 33 177 124 nip io-2020 02 21-12_34_51

Installation method

  • chectl
  • che-operator
  • minishift-addon
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify
@SkorikSergey SkorikSergey added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 21, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Feb 21, 2020
@rhopp
Copy link
Contributor

rhopp commented Feb 21, 2020

@SkorikSergey This is not a bug and the tests needs to be adapted, right?

@rhopp rhopp added severity/P1 Has a major impact to usage or development of the system. area/qe team/che-qe and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Feb 21, 2020
@vzhukovs
Copy link
Contributor

@rhopp yes, seems, that tests have to be aligned to the new behavior.

@vzhukovs
Copy link
Contributor

vzhukovs commented Feb 21, 2020

@SkorikSergey another question, is this a manual testing scenario?

As far as I saw, Happy Path scenario passed successfully:

Configure application confirmExit to always as default by vzhukovskii · Pull Request #634 · eclipse:che-theia 2020-02-21 17-12-44

@SkorikSergey
Copy link
Contributor Author

SkorikSergey commented Feb 21, 2020

HappyPath doesn't reload page. There is tests result with failed tests - https://ci.codenvycorp.com/view/qa-nightly/job/che-integration-tests-multiuser-master-ocp/946/Selenium_20tests_20report/.

@rhopp
Copy link
Contributor

rhopp commented Feb 21, 2020

@vzhukovskii This failure is happenig in the legacy java-selenium suite.
We still have some tests there... They run as PR check on eclipse/che repo and right now, they are kind of "hidden" - We have a task in the current sprint to improve the reporting from this job.

@SkorikSergey
Copy link
Contributor Author

SkorikSergey commented Feb 21, 2020

This issue (#13580) is about closing only terminal tab not browser tab. For now if type Ctrl + w in terminal and click Leave button browser tab will be closed.
screencast-10 33 177 124_8443-2020 02 21-17_22_54

@vzhukovs
Copy link
Contributor

vzhukovs commented Feb 21, 2020

Theia handles Cmd/Ctrl+W only for tab close, we can't modify this behavior for handling only some part, e.g. terminal tab, or editor tab. We just can intercept this hotkey and prevent browser tab closing. (As this hotkey is reserved in browsers). So that's why there was added overridden configuration item to preferences that asks user whether he wants to close tab or not.

This issue (#13580) is about closing only terminal tab not browser tab.

Expected: Ideal behavior would be the same as in native terminal - last word is erased, but I afraid whether it is possible to override such browser hotkey. So, at least a confirmation dialog should be shown before closing, because it's a typical thing when user press ctrl+w in terminal and does not to close tab.

@rhopp
Copy link
Contributor

rhopp commented Feb 24, 2020

IMHO this behavior change is "UX downgrade". In my opinion, the confirmation should appear only when data loss is at place (aka. some editor is not saved).

Anyway... Until this gets sorted, @SkorikSergey we can put back the previous behavior by setting this in user preferences before actually running the test (the same way, that @Ohrimenko1988 is doing this for example for setting the terminal type to dom)

@Katka92
Copy link
Contributor

Katka92 commented Feb 25, 2020

This issue is a root cause of failures for nightly tests with the nightly image. I assume @SkorikSergey is fixing that in Java tests, so I will do that for typescript ones.

@amisevsk
Copy link
Contributor

@rhopp As a user of Che, "ctrl-w to close your whole IDE" was maybe my least favorite thing about Theia :). When typing in a terminal, ctrl-w is one of the hardest habits to break.

@SkorikSergey SkorikSergey self-assigned this Feb 26, 2020
@SkorikSergey SkorikSergey added the status/in-progress This issue has been taken by an engineer and is under active development. label Feb 26, 2020
@rhopp rhopp added this to the 7.10.0 milestone Feb 26, 2020
@SkorikSergey SkorikSergey removed the status/in-progress This issue has been taken by an engineer and is under active development. label Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qe kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

6 participants