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

E2E Testing #135

Closed
yorkxin opened this issue Apr 23, 2024 · 2 comments
Closed

E2E Testing #135

yorkxin opened this issue Apr 23, 2024 · 2 comments

Comments

@yorkxin
Copy link
Owner

yorkxin commented Apr 23, 2024

I can only do so much with manual testing. Now that I started bloating features, it is time to add E2E tests before I regret.

I've studied E2E tests on Chrome's Guide. I've also found that there are limits on Puppeteer in terms of testing extensions:

The second article suggested that Selenium is a better choice when it comes to inputs controlled by the OS (e.g. mouse right-click, keypress). Therefore it might be a better idea to start with Selenium.

@yorkxin
Copy link
Owner Author

yorkxin commented May 10, 2024

When trying to test feature #143 which requires context menu click on the tabs bar, I found it really hard to achieve with AWT Robot library, because I'll need to move the mouse to a position where the tabs bar is. Moving focus by keyboard (F6 then Shift-Tab * 4) isn't enough.

Also I learned from a StackOverflow post (lost link) that Selenium is launched by another program (in my case it's something something remote TestNG), so to focus on the browser itself, it is necessary to use Cmd+Tab (on macOS).

@yorkxin
Copy link
Owner Author

yorkxin commented Jul 1, 2024

Good enough. I am closing this.

I've published technical notes on my blog. If anyone is interested in it: Copy as Markdown 3.0: A Milestone – Yu-Cheng Chuang’s Blog

@yorkxin yorkxin closed this as completed Jul 1, 2024
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

No branches or pull requests

1 participant