Skip to content

Commit

Permalink
use real sitewise data points for integration tests (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
boweihan authored Jan 31, 2022
1 parent 9ddaa58 commit 29a2dc3
Show file tree
Hide file tree
Showing 6 changed files with 19,480 additions and 103 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
import { renderChart, testChartContainerClassNameSelector } from '@iot-app-kit/components/src/testing/renderChart';
import { SECOND_IN_MS } from '@iot-app-kit/core/src/common/time';
import { mockDataResponse } from '../../testing/mocks/response';

describe('handles gestures', () => {
before(() => {
cy.intercept('/properties/history?*', (req) => {
req.reply(mockDataResponse(new Date(req.query.startDate), new Date(req.query.endDate)));
});

cy.intercept('/properties/aggregates?*', (req) => {
req.reply(
mockDataResponse(new Date(req.query.startDate), new Date(req.query.endDate), req.query.resolution as string)
);
});
});

it('zooms in and out', () => {
renderChart();

Expand Down
Loading

0 comments on commit 29a2dc3

Please sign in to comment.