-
Notifications
You must be signed in to change notification settings - Fork 168
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
Configure to run IE11 tests in production mode #4306
Conversation
Reviewed 1 of 20 files at r1. flow-tests/test-dev-mode/src/main/webapp/frontend/com/vaadin/flow/uitest/vaadin-flow-bundle.html, line 1 at r1 (raw file):
This and the change below will have an effect on Tomcat tests which are executed nightly so failures won't be detected during the validation. Comments from Reviewable |
Review status: 1 unresolved discussion, 0 of 1 LGTMs obtained flow-tests/test-dev-mode/src/main/webapp/frontend/com/vaadin/flow/uitest/vaadin-flow-bundle.html, line 1 at r1 (raw file): Previously, denis-anisimov (Denis) wrote…
I ran
Seems un-related to this, but I'll run it again. Comments from Reviewable |
Review status: 1 unresolved discussion, 0 of 1 LGTMs obtained flow-tests/test-dev-mode/src/main/webapp/frontend/com/vaadin/flow/uitest/vaadin-flow-bundle.html, line 1 at r1 (raw file): Previously, pekam (Pekka Maanpää) wrote…
On the second try all the tests passed. Comments from Reviewable |
Review status: all discussions resolved, 0 of 1 LGTMs obtained flow-tests/test-dev-mode/src/main/webapp/frontend/com/vaadin/flow/uitest/vaadin-flow-bundle.html, line 1 at r1 (raw file): Previously, pekam (Pekka Maanpää) wrote…
Good, thanks. Comments from Reviewable |
Reviewed 19 of 20 files at r1. a discussion (no related file): Or they have tests that are executed in production mode which is not a production mode? BUT. flow-tests/test-root-context/pom.xml, line 83 at r1 (raw file):
This is not needed because you have moved everything into Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained a discussion (no related file):
Yes.
I don't follow. You mean that same view is used in both flow-tests/test-root-context/pom.xml, line 83 at r1 (raw file): Previously, denis-anisimov (Denis) wrote…
Previously, when there was no "true" production mode, this config was used to serve the same static resources for es5 that we have for es6. Otherwise it would have tried to look for non-existing transpiled resources in some es5 folder. Now with transpilation enabled, if we want the transpiled resources to be served to IE11, we need to use the default directory for es5 which contains the transpiled resources. Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained a discussion (no related file): Previously, pekam (Pekka Maanpää) wrote…
I've seen such tests.
The first test uses The second method uses Or may be the first test relies on the production mode and cannot be run in production mode at all. It needs to be checked. I'm not sure. And the same for every other test. Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained a discussion (no related file):
Sorry . It will become a dev mode run being running in production mode Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained a discussion (no related file): Previously, denis-anisimov (Denis) wrote…
Yes, currently tests that use this semi-production mode are in Actually I now figured out that I could have kept those in the So the configuration is currently like this:
(I'm not sure if you needed all this explanation but I needed to write it down to clarify for myself at least) If we want to move all the semi-production mode tests to use "real" production mode, then we would need to run transpilation and everything for every build. I don't think it's necessary since the tests just check that the resource paths are changed based on the servlet parameter. That's why I'd like to just have them in But the modules have really bad names in this case... Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained a discussion (no related file): Previously, pekam (Pekka Maanpää) wrote…
You have described the situation which happens with the current PR. But I have some doubts....
If they both are failing then it's OK to completely move UIs and tests to the Also if you are moving out all semi-production mode related tests then you may move the corresponding production mode servlet into Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained flow-tests/test-root-context/pom.xml, line 83 at r1 (raw file): Previously, pekam (Pekka Maanpää) wrote…
Yes, but semi-production mode tests have been moved to the Comments from Reviewable |
Review status: 2 unresolved discussions, 0 of 1 LGTMs obtained a discussion (no related file):
The semi-production mode should be enough to verify these, as they have been using that until this point anyway. I didn't test now but the first test should fail in production mode and the second one shouldn't. It shouldn't matter whether we use semi-production mode or true production mode here.
Then we need to either run production build always in
I agree with this. flow-tests/test-root-context/pom.xml, line 83 at r1 (raw file): Previously, denis-anisimov (Denis) wrote…
We already had that config in the Comments from Reviewable |
Review status: 1 unresolved discussion, 0 of 1 LGTMs obtained a discussion (no related file):
I don't think so.
Yes. I'm talking about the second option. flow-tests/test-root-context/pom.xml, line 83 at r1 (raw file): Previously, pekam (Pekka Maanpää) wrote…
Ah, OK. Comments from Reviewable |
Review status: 1 unresolved discussion, 0 of 1 LGTMs obtained a discussion (no related file):
It makes things more complex and confusing. I need to trigger specific configuration to make the semi-production mode work when not running real production mode (the configuration for Also, using the same view for both modules makes things more confusing. Usually we have the test view with the test class in the same module, but now we would need to introduce a couple of exceptions which are used in two modules. But whatever, if you still disagree with me, I will try to make it work to get this forward. Comments from Reviewable |
Review status: 1 unresolved discussion, 0 of 1 LGTMs obtained a discussion (no related file): Previously, pekam (Pekka Maanpää) wrote…
If it's complicated then OK. Don't see any issues with having shared UI classes for two modules. But if it's too hard to make tests work for Comments from Reviewable |
Review status: all discussions resolved, 0 of 1 LGTMs obtained a discussion (no related file): Previously, denis-anisimov (Denis) wrote…
We are releasing now...... Comments from Reviewable |
Review status: all discussions resolved, 0 of 1 LGTMs obtained, and 1 stale Comments from Reviewable |
* Trigger productionMode and IgnoreIE11 in BrowserStack * Revert productionMode activation * activate production mode only on browserstack property * Use TestBench queries in ChildOrderIT * Improve browser checking in BodyScrollIT * Try to fix CompositeIT with waitForElementPresent * Wait for shadow-root child in ChildOrderIT * Increase timeout for ChildOrderIT * Revert "Increase timeout for ChildOrderIT" This reverts commit 435dc81. * Revert "Wait for shadow-root child in ChildOrderIT" This reverts commit 1d40a78. * Revert "Use TestBench queries in ChildOrderIT" This reverts commit 6deceaa. * Merge branch 'master' into ie11-conf * Remove es5 folder config * Move ExportedJSFunction tests out of test-root-context * Move ClientSideExceptionHandling tests out of test-root-context * Move InfoIT out of test-root-context * Move frontend protocol tests out of test-root-context * Add description for flow-test-dev-mode * Merge branch 'master' into ie11-conf
* Trigger productionMode and IgnoreIE11 in BrowserStack * Revert productionMode activation * activate production mode only on browserstack property * Use TestBench queries in ChildOrderIT * Improve browser checking in BodyScrollIT * Try to fix CompositeIT with waitForElementPresent * Wait for shadow-root child in ChildOrderIT * Increase timeout for ChildOrderIT * Revert "Increase timeout for ChildOrderIT" This reverts commit 435dc81. * Revert "Wait for shadow-root child in ChildOrderIT" This reverts commit 1d40a78. * Revert "Use TestBench queries in ChildOrderIT" This reverts commit 6deceaa. * Merge branch 'master' into ie11-conf * Remove es5 folder config * Move ExportedJSFunction tests out of test-root-context * Move ClientSideExceptionHandling tests out of test-root-context * Move InfoIT out of test-root-context * Move frontend protocol tests out of test-root-context * Add description for flow-test-dev-mode * Merge branch 'master' into ie11-conf
* Trigger productionMode and IgnoreIE11 in BrowserStack * Revert productionMode activation * activate production mode only on browserstack property * Use TestBench queries in ChildOrderIT * Improve browser checking in BodyScrollIT * Try to fix CompositeIT with waitForElementPresent * Wait for shadow-root child in ChildOrderIT * Increase timeout for ChildOrderIT * Revert "Increase timeout for ChildOrderIT" This reverts commit 435dc81. * Revert "Wait for shadow-root child in ChildOrderIT" This reverts commit 1d40a78. * Revert "Use TestBench queries in ChildOrderIT" This reverts commit 6deceaa. * Merge branch 'master' into ie11-conf * Remove es5 folder config * Move ExportedJSFunction tests out of test-root-context * Move ClientSideExceptionHandling tests out of test-root-context * Move InfoIT out of test-root-context * Move frontend protocol tests out of test-root-context * Add description for flow-test-dev-mode * Merge branch 'master' into ie11-conf
IgnoreIE11
tests when running in BrowserStacktest-root-context
totest-dev-mode
This change is