Editor tabs are not restored after refreshing browser tab
See original GitHub issueDescribe the bug
The selenium tests fails because Editor tabs are not restored after refreshing browser tab.
- ProjectStateAfterRefreshTest.checkRestoreStateOfProjectAfterRefreshTest failure on nightly build https://ci.codenvycorp.com/view/qa-nightly/job/che-integration-tests-multiuser-master-ocp/850/Selenium_20tests_20report/failsafe-report.html#org.eclipse.che.selenium.workspaces.ProjectStateAfterRefreshTest
Driver info: org.eclipse.che.selenium.core.SeleniumWebDriver
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:80)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:265)
at org.eclipse.che.selenium.core.webdriver.SeleniumWebDriverHelper.waitVisibility(SeleniumWebDriverHelper.java:151)
at org.eclipse.che.selenium.core.webdriver.SeleniumWebDriverHelper.waitVisibility(SeleniumWebDriverHelper.java:161)
at org.eclipse.che.selenium.pageobject.theia.TheiaEditor.waitEditorTab(TheiaEditor.java:126)
at org.eclipse.che.selenium.workspaces.ProjectStateAfterRefreshTest.checkFilesAreOpened(ProjectStateAfterRefreshTest.java:89)
at org.eclipse.che.selenium.workspaces.ProjectStateAfterRefreshTest.checkRestoreStateOfProjectAfterRefreshTest(ProjectStateAfterRefreshTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:696)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//ul[@class='p-TabBar-content']//li[contains(@title, 'pom.xml')]"}
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 3.10.0-862.11.6.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
- ProjectStateAfterRenameWorkspaceTest.checkProjectAfterRenameWs failure on nightly build: https://ci.codenvycorp.com/view/qa-nightly/job/che-integration-tests-multiuser-master-ocp/850/Selenium_20tests_20report/failsafe-report.html#org.eclipse.che.selenium.workspaces.ProjectStateAfterRenameWorkspaceTest
Driver info: org.eclipse.che.selenium.core.SeleniumWebDriver
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:80)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:265)
at org.eclipse.che.selenium.core.webdriver.SeleniumWebDriverHelper.waitVisibility(SeleniumWebDriverHelper.java:151)
at org.eclipse.che.selenium.core.webdriver.SeleniumWebDriverHelper.waitVisibility(SeleniumWebDriverHelper.java:161)
at org.eclipse.che.selenium.pageobject.theia.TheiaEditor.waitEditorTab(TheiaEditor.java:126)
at org.eclipse.che.selenium.workspaces.ProjectStateAfterRenameWorkspaceTest.checkFilesAreOpened(ProjectStateAfterRenameWorkspaceTest.java:109)
at org.eclipse.che.selenium.workspaces.ProjectStateAfterRenameWorkspaceTest.checkProjectAfterRenameWs(ProjectStateAfterRenameWorkspaceTest.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:696)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//ul[@class='p-TabBar-content']//li[contains(@title, 'pom.xml')]"}
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 3.10.0-862.11.6.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Che version
- latest
- nightly
- other: please specify
Runtime
- kubernetes (include output of
kubectl version
) - Openshift 3.9 (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: Codenvy CI
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Chrome Tabs Keep Auto-Refreshing? Here's How to Fix It
To reset Chrome, navigate to chrome://settings/reset. Then, click Restore settings to their original defaults > Reset settings. Resettings ...
Read more >Tabs and windows lost after Firefox Refresh and page looks ...
Open the New Profile folder in Windows Explorer Open the Troubleshooting Information page using either: "3-bar" menu button > "?" button > ...
Read more >Quick fixes: restoring pages of tabs on Chrome - The Verge
Use Shift-Ctrl-T on a PC or Shift-Command-T on a Mac to restore tabs. You can also use History to restore complete Chrome windows,...
Read more >Tabs gone after WindowsUpdate reboot. How to get all tabs ...
Yes, there is a manual way to restore all closed tabs at once by using the reopen closed window feature by right-clicking on...
Read more >How To Restore Tabs on Google Chrome Every Time - Workona
If the tab was closed a while ago, try to remember when you had the tab open (both date and time). This makes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are dedicated E2E tests, which check that tabs are being restored after refresh of browser tab. That beheviour was treated as important, so as it’s quite usual situation when user has a lot of opened files, and from some reasons has lost connection to server, or workspace has stopped by timeout. And it’s expected user would not need to find and reopen files after restoring access to his workspace.
Thanks @SkorikSergey for checking it!