FLOE-398: Test FD language panel scroll positioning

Metadata

Source
FLOE-398
Type
Task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Simon Bates
Created
2015-06-09T10:28:27.841-0400
Updated
2015-11-03T12:54:25.567-0500
Versions
N/A
Fixed Versions
N/A
Component
  1. First Discovery

Description

To test the scrolling of the language panel, we are currently inspecting the "displayLangIndex" model property:

https://github.com/fluid-project/first-discovery/blob/79576554f72687d708489d86ac38898298d4fa3d/tests/js/panelsTests.js#L200-L205

The language panel has a model listener that scrolls the panel based on this model property. This test implementation verifies that the model is being updated as expected, but not that the model listener is working correctly and actually scrolling the panel.

During development, we found that testing the scroll position directly was not reliable across all browsers (in particular, Chrome on Mac with increased font size).

Investigate to see if we can get checking of the scroll position to work in a reliable manner:

https://github.com/fluid-project/first-discovery/blob/79576554f72687d708489d86ac38898298d4fa3d/tests/js/panelsTests.js#L207-L227

The commit that changed the test implementation:

https://github.com/fluid-project/first-discovery/commit/94d3f591a7c8f94864e30ae199c83fe126dd6bd4

Comments