Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Jun 11, 2020
1 parent c313c63 commit 53794fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion browsers/browsers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import path from 'path';

import webdriver, { By } from 'selenium-webdriver';
import webdriver, { By, logging } from 'selenium-webdriver';

jest.setTimeout(30000);

Expand Down Expand Up @@ -60,6 +60,15 @@ describe('smoke tests', () => {
});

afterAll(async() => {
const entries = await driver.manage().logs().get(logging.Type.BROWSER);
console.log(JSON.stringify(entries));

entries.forEach((entry) => {
if (entry.level.name === 'error') {
console.log('[%s] %s', entry.level.name, entry.message);
}
});

await driver.quit();
});

Expand Down
3 changes: 3 additions & 0 deletions src/components/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export class Chart extends React.Component<ChartProps, ChartState> {
this.chartContainerRef = createRef();
this.chartStageRef = createRef();

// eslint-disable-next-line no-console
console.error('this thing errored');

const id = props.id ?? uuid.v4();
const storeReducer = chartStoreReducer(id);
const enhancers = typeof window !== 'undefined' && (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
Expand Down

0 comments on commit 53794fd

Please sign in to comment.