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

ui: remove enzyme from common #3509

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

DonHaul
Copy link
Contributor

@DonHaul DonHaul commented Mar 18, 2025

@DonHaul DonHaul force-pushed the enzyme-is-dead-common-2 branch 2 times, most recently from 413bdab to f9b67fb Compare March 18, 2025 14:32
Copy link

cypress bot commented Mar 18, 2025

inspirehep    Run #34514

Run Properties:  status check passed Passed #34514  •  git commit fe7cecae16: ui: remove enzyme from common
Project inspirehep
Branch Review enzyme-is-dead-common-2
Run status status check passed Passed #34514
Run duration 07m 45s
Commit git commit fe7cecae16: ui: remove enzyme from common
Committer DonHaul
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 37
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 67
View all changes introduced in this branch ↗︎

Copy link
Collaborator

@ioannistsanaktsidis ioannistsanaktsidis left a comment

Choose a reason for hiding this comment

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

Found some missing assertions

const wrapper = shallow(<UnlinkedAuthor author={author} />);
expect(wrapper).toMatchSnapshot();
const { getByText } = render(<UnlinkedAuthor author={author} />);
getByText('Name, Full');
Copy link
Collaborator

Choose a reason for hiding this comment

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

here you are missing the expect part

expect(wrapper.find(GoBackLink)).toHaveProp({
children: 'custom',
});
expect(getByRole('button'));
Copy link
Collaborator

Choose a reason for hiding this comment

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

here you are also missing the .somthing after the expect

@DonHaul DonHaul force-pushed the enzyme-is-dead-common-2 branch from f9b67fb to fe7ceca Compare March 20, 2025 15:14
Copy link
Collaborator

@ioannistsanaktsidis ioannistsanaktsidis left a comment

Choose a reason for hiding this comment

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

All good!

@DonHaul DonHaul merged commit 47fdb54 into inspirehep:master Mar 21, 2025
30 checks passed
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