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

Test components #42

Merged
merged 6 commits into from
Feb 17, 2023
Merged

Test components #42

merged 6 commits into from
Feb 17, 2023

Conversation

johncalesp
Copy link
Contributor

  • Unit test for main sections of the UI and utils.js
  • Made small changed on the styling of local GPU.

expect(root).toBeTruthy();
});
});
test("Render App correctly, it must show begin analysis button", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment isn't necessarily true as it will be disconnected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the comment and testing title

render(<App />);
// For testing there is no default socket connection. It will show the warning screen

expect(screen.getByText(/connection has been lost to the profiler. please reconnect the profiler and double check your ports then click connect/i)).toBeTruthy();
Copy link
Contributor

Choose a reason for hiding this comment

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

I would just double check if the App renders something instead of relying on a string. That seems very brittle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added reconnect button to the test

@johncalesp johncalesp merged commit 330778a into main Feb 17, 2023
@johncalesp johncalesp deleted the test-components branch February 17, 2023 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants