UI tweaks for the query history.

This commit is contained in:
Matthew Kleiman
2017-07-06 13:08:29 +01:00
committed by Dave Page
parent 1291841d98
commit e2cbaaef71
20 changed files with 380 additions and 300 deletions

View File

@@ -94,12 +94,13 @@ describe('QueryHistory', () => {
it('renders the most recent query as selected', () => {
expect(foundChildren.at(0).nodes.length).toBe(1);
expect(foundChildren.at(0).find('QueryHistorySelectedEntry').length).toBe(1);
expect(foundChildren.at(0).hasClass('selected')).toBeTruthy();
});
it('renders the older query as not selected', () => {
expect(foundChildren.at(1).nodes.length).toBe(1);
expect(foundChildren.at(1).find('QueryHistoryErrorEntry').length).toBe(1);
expect(foundChildren.at(1).hasClass('selected')).toBeFalsy();
expect(foundChildren.at(1).hasClass('error')).toBeTruthy();
});
});
@@ -143,12 +144,14 @@ describe('QueryHistory', () => {
it('renders the most recent query as selected in the left pane', () => {
expect(foundChildren.at(0).nodes.length).toBe(1);
expect(foundChildren.at(0).find('QueryHistoryVanillaEntry').length).toBe(1);
expect(foundChildren.at(0).hasClass('selected')).toBeFalsy();
expect(foundChildren.at(0).hasClass('error')).toBeFalsy();
});
it('renders the older query as selected in the left pane', () => {
expect(foundChildren.at(1).nodes.length).toBe(1);
expect(foundChildren.at(1).find('QueryHistorySelectedErrorEntry').length).toBe(1);
expect(foundChildren.at(1).hasClass('selected')).toBeTruthy();
expect(foundChildren.at(1).hasClass('error')).toBeTruthy();
});
});