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.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.