on 12-11-2017 10:06 AM
The problem was that the OPA tests were made on elements which were dynamic. These elements are rendered only if the browser window is bigger than a certain size.
So the solution is to set a fixed screen size for PhantomJS in the gruntfile, qunit section (page->viewportSize):
qunit: {
options: {
'--web-security': 'no', // yes/no
'--proxy': 'xxxxxx', //your proxy - if you have one
},
opa: {
options: {
page : {
viewportSize : { width: 1920, height: 1080 }
},
urls: [
"http://<%= settings.connect.host %>:<%= settings.connect.port %>/test/integration/opaTests.qunit.html"
],
// same as qunits timeout 90 seconds since opa test might take a while
timeout: "<%= tests.opaTimeout %>"
}
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how you get the coverage report when you run headless? is is possible to share your code for grunt tasks for qunit and opa?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.