Skip to content

Commit

Permalink
tests(server): update e2e snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Oct 1, 2019
1 parent 3c7ad0f commit 1227f6d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Expand Up @@ -5,7 +5,7 @@
*/

import {h} from 'preact';
import {Link, route} from 'preact-router';
import {route} from 'preact-router';
import _ from '@lhci/utils/src/lodash.js';
import {useProjectBuilds, useProject} from '../../hooks/use-api-data';
import {AsyncLoader, combineLoadingStates, combineAsyncData} from '../../components/async-loader';
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions packages/server/test/e2e/project-dashboard.test.js
Expand Up @@ -24,9 +24,11 @@ describe('Project dashboard', () => {

expect(commits).toMatchInlineSnapshot(`
Array [
"missing_ancestor (ba5b0ad9) 8:13:28 PM",
"master (5b0ad9f6) 6:55:18 PM",
"test_1 (c1ea447b) 6:15:28 PM",
"test(unmatched-ancestor): a really really really really long messagecall_splitmissing_ancestorba5b0ad9Aug 09 8:13 PM",
"test(matched-ancestor): a really really really really really long messagecall_splitmaster5b0ad9f6Aug 09 6:55 PM",
"feat: test out a different risky changecall_splittest_1c1ea447bAug 09 6:15 PM",
"feat: test out a risky changecall_splittest_0aaa5b0a3Aug 09 3:15 PM",
"perf: TTI improvementscall_splitmasterbb9aa3c1Aug 07 3:51 PM",
]
`);
});
Expand Down
1 change: 0 additions & 1 deletion packages/server/test/e2e/steps/navigate-to-project.js
Expand Up @@ -32,7 +32,6 @@ module.exports = (state, projectName) => {

it('should wait for the dashboard to load', async () => {
await state.page.waitFor('.dashboard');
await state.page.waitFor('.dashboard-summary');
await state.page.waitFor('.dashboard-graph');
});

Expand Down
Expand Up @@ -65,6 +65,6 @@ describe('ProjectDashboard', () => {
);

const {getAllByText} = render(<ProjectDashboard projectId={'abcd'} />);
await wait(() => getAllByText(/Project/));
await wait(() => getAllByText(/feature_branch/));
});
});

0 comments on commit 1227f6d

Please sign in to comment.