Skip to content

Commit

Permalink
chore(e2e): increase retry times (#3937)
Browse files Browse the repository at this point in the history
* chore(e2e): increate retry times

* chore(e2e): increase timeout
  • Loading branch information
chasestarr committed Nov 17, 2020
1 parent ec57871 commit e9f31af
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 12 deletions.
3 changes: 3 additions & 0 deletions jest.e2e.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ LICENSE file in the root directory of this source tree.

const mkdirp = require('mkdirp');

jest.setTimeout(20 * 1000);
jest.retryTimes(10);

global.it = async function(name, func, timeout) {
return await test(
name,
Expand Down
2 changes: 0 additions & 2 deletions src/data-table/__tests__/data-table-unreliable.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const {
const COLUMN_COUNT = 5;

describe('data table columns', () => {
jest.retryTimes(3);

it('updates categorical column', async () => {
const index = 1;
await mount(page, 'data-table-columns');
Expand Down
2 changes: 0 additions & 2 deletions src/datepicker/__tests__/datepicker-unreliable.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const selectors = {
};

describe('Datepicker', () => {
jest.retryTimes(3);

beforeEach(async () => {
await jestPuppeteer.resetPage();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const NOW = new Date();
const FORMAT_STRING = 'yyyy/MM/dd';

describe('Stateful Datepicker Quick Select', () => {
jest.retryTimes(3);

beforeEach(async () => {
await jestPuppeteer.resetPage();
});
Expand Down
2 changes: 0 additions & 2 deletions src/datepicker/__tests__/stateful-datepicker.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const selectors = {
};

describe('Stateful Datepicker', () => {
jest.retryTimes(3);

beforeEach(async () => {
await jestPuppeteer.resetPage();
});
Expand Down
3 changes: 0 additions & 3 deletions src/popover/__tests__/popover-unreliable.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const selectors = {
};

describe('popover', () => {
jest.setTimeout(10 * 1000);
jest.retryTimes(3);

it('closes one popover at a time on esc key press', async () => {
await mount(page, 'popover-select');
await page.waitForSelector('button');
Expand Down
2 changes: 1 addition & 1 deletion src/snackbar/__tests__/snackbar-provider.scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Child() {
enqueue({
message: 'one',
actionMessage: 'perform',
actionOnClick: () => console.log('click'),
actionOnClick: () => {},
})
}
>
Expand Down

1 comment on commit e9f31af

@vercel
Copy link

@vercel vercel bot commented on e9f31af Nov 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.