Skip to content

Commit 5142e87

Browse files
committed
Align app contract test with result UI
1 parent 630f7b6 commit 5142e87

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

frontend/src/__tests__/App.contract.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,16 @@ describe('App contract', () => {
6464
fireEvent.click(screen.getByRole('button', { name: 'Generate feed URL' }));
6565

6666
await waitFor(() => {
67-
expect(screen.getByText('Your feed is ready')).toBeInTheDocument();
6867
expect(screen.getByText('Example Feed')).toBeInTheDocument();
6968
expect(screen.getByLabelText('Feed URL')).toBeInTheDocument();
7069
expect(screen.getByRole('button', { name: 'Copy feed URL' })).toBeInTheDocument();
7170
expect(screen.getByRole('link', { name: 'Open feed' })).toBeInTheDocument();
72-
expect(screen.getByRole('link', { name: 'Open JSON Feed' })).toHaveAttribute(
71+
expect(screen.getByRole('link', { name: 'JSON Feed' })).toHaveAttribute(
7372
'href',
7473
'http://localhost:3000/api/v1/feeds/generated-token.json'
7574
);
7675
expect(screen.getByRole('button', { name: 'Create another feed' })).toBeInTheDocument();
77-
expect(screen.getByText('Preview')).toBeInTheDocument();
78-
expect(screen.getByText('Latest items from this feed')).toBeInTheDocument();
76+
expect(screen.getByText('Feed preview')).toBeInTheDocument();
7977
expect(screen.getByText('Contract Item')).toBeInTheDocument();
8078
});
8179
});

0 commit comments

Comments
 (0)