Skip to content

Commit

Permalink
fix jest test snapshots that are now failing
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Mar 7, 2022
1 parent 2484d73 commit bb88cd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions x-pack/plugins/reporting/server/config/create_config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ describe('Reporting server createConfig$', () => {

expect(result).toMatchInlineSnapshot(`
Object {
"capture": Object {
"loadDelay": 1,
"maxAttempts": 1,
"timeouts": Object {
"openUrl": 100,
"renderComplete": 100,
"waitForElements": 100,
},
"zoom": 1,
},
"csv": Object {},
"encryptionKey": "iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
"index": ".reporting",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ describe('error codes', () => {
);

const { error_code: errorCode, warnings } = await generateCsv.generateData();
expect(errorCode).toBe('authentication_expired');
expect(errorCode).toBe('authentication_expired_error');
expect(warnings).toMatchInlineSnapshot(`
Array [
"This report contains partial CSV results because authentication expired before it could finish. Try exporting a smaller amount of data or increase your authentication timeout.",
Expand Down

0 comments on commit bb88cd6

Please sign in to comment.