-
Notifications
You must be signed in to change notification settings - Fork 16
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
Acceptance Tests #26
Comments
Hi @Ericky14, Like the error said, you need to pass the JavaScript event to the context-menu. Normally this will be send automatically when you trigger the context-menu on right-clicking, but in acceptance tests you have to pass it yourself. The event is used to know the cursor position, so it needs a By using jQuery, you can do something like:
In my own acceptance tests, I create an
|
Thank you for the help, it worked :) |
Sorry for re-opening it after so closing it so soon, but I want to discuss something else with you if possible. After opening the context-menu with I am using a page object and clicking the button like this,
Does it not work because I need to pass a certain type of event instead of a normal click? I also tried doing |
No problem you re-opened it. So basically, I didn't find a solution for this, or even the reason why it would not trigger the action in tests where it does work in the real application. I'm really busy for now and probably the next 6 or 7 weeks, so can't promise I can take a look at it again before the end of April. I suggest we keep this issue open until someone has find a solution for it |
Any updates on how to resolve this issue? |
Does anyone know how to test this add-on with an acceptance test?
I tried like this
triggerEvent('.file-item:first', 'contextmenu');
and got this error
Uncaught Error: Assertion Failed: You need to pass event to the context-menu activate()
I would appreciate very much if anyone could help me.
The text was updated successfully, but these errors were encountered: