directorlive / oppia

Automatically exported from code.google.com/p/oppia
Apache License 2.0
0 stars 0 forks source link

Integration test 'Full exploration editor should handle discarding changes...' fails on Macbook of 11 inches size. #665

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run bash scripts/run_integration_tests.sh on an 11-inch
2.watch that and later tests fail
3.

What is the expected output? What do you see instead?
Expected passing test. Instead test fails. 

Please use labels and text to provide additional information.
The integration / UI tests don't work on a Macbook Air of size 11 inches. It 
fails specifically on the protractor/editorAndPlayer.js test 'Full exploration 
editor should handle discarding changes...' where it gives the error "Element 
is not clickable at point (412, 17). Other element would receive the click: 
<div class="btn-group" style="margin-right: 10px; margin-top: 8px;" 
title="Please save your changes before publishing.">...</div>"

Original issue reported on code.google.com by maddenw...@gmail.com on 17 Mar 2015 at 12:16

GoogleCodeExporter commented 9 years ago
Stack trace. The thought that it's a screen size issue stems from the idea that 
it's trying to click on a particular point and seeming to fail, but could be 
something else. 

Stack trace:

  2) Full exploration editor should handle discarding changes, navigation, deleting states, changing the first state, displaying content, deleting rules and switching to preview mode
   Message:
     Expected [ '', '', '' ] to equal [ 'state1', 'state2', 'END' ].
   Stacktrace:
     Error: Expected [ '', '', '' ] to equal [ 'state1', 'state2', 'END' ].
    at /github_projects/opensource/oppia/oppia/core/tests/protractor_utils/editor.js:439:24

  3) Full exploration editor should handle discarding changes, navigation, deleting states, changing the first state, displaying content, deleting rules and switching to preview mode
   Message:
     UnknownError: unknown error: Element is not clickable at point (412, 17). Other element would receive the click: <div class="btn-group" style="margin-right: 10px; margin-top: 8px;" title="Please save your changes before publishing.">...</div>
  (Session info: chrome=41.0.2272.89)
  (Driver info: chromedriver=2.10.267517,platform=Mac OS X 10.9.5 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 32 milliseconds
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', 
java.version: '1.6.0_65'
Session ID: ba2b5345b8bc1f6f80aa78d1094e74d0
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, 
chrome={userDataDir=/var/folders/y6/fjf5m_9j35d0qldwd7drd3m00000gp/T/.org.chromi
um.Chromium.QQ3kww}, rotatable=false, locationContextEnabled=true, 
version=41.0.2272.89, takesHeapSnapshot=true, cssSelectorsEnabled=true, 
databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, 
nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, 
takesScreenshot=true}]
   Stacktrace:
     UnknownError: unknown error: Element is not clickable at point (412, 17). Other element would receive the click: <div class="btn-group" style="margin-right: 10px; margin-top: 8px;" title="Please save your changes before publishing.">...</div>
  (Session info: chrome=41.0.2272.89)
  (Driver info: chromedriver=2.10.267517,platform=Mac OS X 10.9.5 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 32 milliseconds
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', 
java.version: '1.6.0_65'
Session ID: ba2b5345b8bc1f6f80aa78d1094e74d0
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, 
chrome={userDataDir=/var/folders/y6/fjf5m_9j35d0qldwd7drd3m00000gp/T/.org.chromi
um.Chromium.QQ3kww}, rotatable=false, locationContextEnabled=true, 
version=41.0.2272.89, takesHeapSnapshot=true, cssSelectorsEnabled=true, 
databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, 
nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, 
takesScreenshot=true}]
==== async task ====
WebElement.click()
==== async task ====
Asynchronous test function: it()
Error
    at /github_projects/opensource/oppia/oppia/core/tests/protractor_utils/editor.js:304:62
Error
    at [object Object].editor.setContent.richTextEditor.addRteComponent.title (/github_projects/opensource/oppia/oppia/core/tests/protractor/editorAndPlayer.js:146:3)
    at Object.<anonymous> (/github_projects/opensource/oppia/oppia/core/tests/protractor/editorAndPlayer.js:107:1)

Original comment by maddenw...@gmail.com on 17 Mar 2015 at 12:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
When running through the tests, it seems to break on this expectation:

master branch
last commit: 443b960 Fix error in search function which caused unnecessary 
errors to be logged.  [Sean Lip]
Line 161 of editorAndPlayer.js
      editor.expectStateNamesToBe(['state1', 'state2', 'END']);

Original comment by maddenw...@gmail.com on 17 Mar 2015 at 1:53