Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flaky ModuleArchiveContainer test #3873

Open
kokrui opened this issue Nov 25, 2024 · 0 comments
Open

flaky ModuleArchiveContainer test #3873

kokrui opened this issue Nov 25, 2024 · 0 comments
Labels

Comments

@kokrui
Copy link
Member

kokrui commented Nov 25, 2024

This test is flaky

test('should show 404 page when the course code does not exist', async () => {
mockAxiosRequest.mockRejectedValue(notFoundError);
make('/archive/CS1234/2017-2018');
expect(await screen.findByText(/course CS1234 not found/)).toBeInTheDocument();
});

I believe it fails because the text is split up into multiple DOM elements / split up (e.g., if it renders like this I believe the test fails)

image

We should fix this!

@kokrui kokrui added the bug label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant