Update MessagePanel test to account for new DOM structure
parent
ccfd6ba4b1
commit
c428736191
|
@ -309,7 +309,7 @@ describe('MessagePanel', function() {
|
||||||
const rm = TestUtils.findRenderedDOMComponentWithClass(res, 'mx_RoomView_myReadMarker_container');
|
const rm = TestUtils.findRenderedDOMComponentWithClass(res, 'mx_RoomView_myReadMarker_container');
|
||||||
|
|
||||||
// it should follow the <li> which wraps the event tile for event 4
|
// it should follow the <li> which wraps the event tile for event 4
|
||||||
const eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
|
const eventContainer = ReactDOM.findDOMNode(tiles[4]);
|
||||||
expect(rm.previousSibling).toEqual(eventContainer);
|
expect(rm.previousSibling).toEqual(eventContainer);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -365,7 +365,7 @@ describe('MessagePanel', function() {
|
||||||
const tiles = TestUtils.scryRenderedComponentsWithType(
|
const tiles = TestUtils.scryRenderedComponentsWithType(
|
||||||
mp, sdk.getComponent('rooms.EventTile'));
|
mp, sdk.getComponent('rooms.EventTile'));
|
||||||
const tileContainers = tiles.map(function(t) {
|
const tileContainers = tiles.map(function(t) {
|
||||||
return ReactDOM.findDOMNode(t).parentNode;
|
return ReactDOM.findDOMNode(t);
|
||||||
});
|
});
|
||||||
|
|
||||||
// find the <li> which wraps the read marker
|
// find the <li> which wraps the read marker
|
||||||
|
@ -460,7 +460,7 @@ describe('MessagePanel', function() {
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
const Dates = res.find(sdk.getComponent('messages.DateSeparator'));
|
const Dates = res.find(sdk.getComponent('messages.DateSeparator'));
|
||||||
|
|
||||||
expect(Dates.length).toEqual(1);
|
expect(Dates.length).toEqual(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue