You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Hi,
right now we sometimes misuse our docs to create examples for edge cases so that we can have e2e tests for those cases, instead of creating very simple examples and testing those.
Let's change our setup so that we can create e2e tests outside of the docs. Here is a first proposal:
When we run the tests via protractor we set a configuration variable env to either jquery or jqlite and provide a helper function that returns the url for the html file given the __filename of the e2e test using a naming convention.
E.g. within myTest.js:
beforeEach(function() {
browser.get(fixtureFor(__filename)); // -> would result in `http://localhost:8000/e2e/myTest.html?jquery`
});
...
A first good candidate for this would be the e2e test for ngCsp.
Hi,
right now we sometimes misuse our docs to create examples for edge cases so that we can have e2e tests for those cases, instead of creating very simple examples and testing those.
Let's change our setup so that we can create e2e tests outside of the docs. Here is a first proposal:
Folder structure:
e2e_tests
templates
header_jquery.html
header_jqlite.html
fixtures
myFixture.html
myFixtures.js
tests
myTest.js
The header_jquery.html resp header_jqlite.html would contain the following:
<script src=""></script>
<script src=""></script>
We would configure our http server to serve a url like http://localhost:8000/e2e/myTest.html?jquery as follows:
When we run the tests via protractor we set a configuration variable env to either jquery or jqlite and provide a helper function that returns the url for the html file given the __filename of the e2e test using a naming convention.
E.g. within myTest.js:
beforeEach(function() {
browser.get(fixtureFor(__filename)); // -> would result in http://localhost:8000/e2e/myTest.html?jquery
});
...
A first good candidate for this would be the e2e test for ngCsp.
Activity
caitp commentedon Oct 9, 2014
I like the idea.
Sent from my iPhone
IgorMinar commentedon Oct 9, 2014
@caitp can you own this?
IgorMinar commentedon Oct 10, 2014
I'm labeling this with post-1.3.0 but it's ok to land it early :)