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(ui-side-nav-bar): migrate old SideNavBar tests #1581

Merged

Conversation

git-nandor
Copy link
Contributor

Closes: INSTUI-4131

@git-nandor git-nandor self-assigned this Jul 12, 2024
@git-nandor git-nandor marked this pull request as ready for review July 12, 2024 07:57
@git-nandor git-nandor requested review from joyenjoyer and balzss July 12, 2024 07:57
Copy link

Preview URL: https://1581--preview-instui.netlify.app

export { SideNavBarItemLocator }
describe('<SideNavBarItem/>', () => {
it('should show a tooltip when the nav is minimized ', async () => {
const onClick = cy.spy()
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to change this but is there a reason this is a spy and not just something like () => {}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is due to the bulk rewriting of the old code stub(). It is entirely equivalent, with no particular reason.
The only advantage is that this way the lint does not throw a warning: warning Unexpected empty method.

@git-nandor git-nandor force-pushed the INSTUI-4131_convert_ui-side-nav-bar_to_the_new_test_format branch from e2ed287 to 3d0ab53 Compare July 23, 2024 09:49
@git-nandor git-nandor merged commit 0670e35 into master Jul 23, 2024
8 checks passed
@git-nandor git-nandor deleted the INSTUI-4131_convert_ui-side-nav-bar_to_the_new_test_format branch July 23, 2024 10:18
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.

3 participants