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

Deprecate for removal AbstractBrowserTestBase::assertEquals(WebElement, WebElement) #1781

Open
joelpop opened this issue Apr 6, 2024 · 0 comments

Comments

@joelpop
Copy link
Collaborator

joelpop commented Apr 6, 2024

AbstractBrowserTestBase::assertEquals(WebElement, WebElement) should be deprecated as it is an obsolete workaround for TestBenchElement that formerly lacked an implementation for equals to correctly compare "wrapped" elements. That issue was resolved with the closing of TestBenchElement should implement equals on 10/21/2016.

Additional rationale for removing this method is due to its name collision with the JUnit5 assertion. Its presence in the base class with this name makes it impossible to statically import the JUnit5 assertEquals method in any test class—a big faux pas. Although deprecating does not resolve that issue, it sets the stage for its removal. Due to this method being protected, documented as a temporary workaround, and no longer be needed (per its Javadoc comment, below), it's removal makes sense.

The only currently known Vaadin usage of this method is in ShortcutsIT in the Flow repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants