[FOLIO-2096] BigTest: When you are using a focus event, the browser should be focused. Created: 11/Jun/19  Updated: 08/Dec/21  Resolved: 08/Dec/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Oleksandr Antonenko Assignee: Anton Emelianov (Inactive)
Resolution: Won't Do Votes: 0
Labels: bigtest
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File 58183933-d8860800-7cb8-11e9-85bf-0dc1610a5702.png    
Sprint:

 Description   

I have found a bigTest issue - when you are using a focus event, the browser should be focused. So if you just running tests from console your tests will fall. But if you click on the browser window(during tests execution) they will pass.

GitHub issue: https://github.com/bigtestjs/interactor/issues/62



 Comments   
Comment by maksym_dryha [ 11/Jun/19 ]

Moreover, you should not open developer tools, if you want to see your focus tests passing. We have another focus related problem which is that it is impossible to check if an element is focused ( is(':focus') doesn't work ). And it appeared that the reason of the issue was unfocused browser (or developer tools open). I've created an issue in bigtest/interactor repository, where more information, code examples and suggested improvement can be found:
https://github.com/bigtestjs/interactor/issues/61

Comment by Jeffrey Cherewaty [ 02/Jul/19 ]

Possible solution in progress on https://github.com/bigtestjs/interactor/issues/62, relying on document.activeElement instead of :focus. More info soon.

Comment by Oleksandr Antonenko [ 03/Jul/19 ]

It seems really good. Thank you.

Comment by Cate Boerema (Inactive) [ 18/May/20 ]

Anton Emelianov can we tag this with something to get it out of our general bug statistics?

Comment by Ann-Marie Breaux (Inactive) [ 30/Nov/21 ]

Hi Anton Emelianov Which team should be assigned to this? It seems like it should move to the FAT project, and be assigned to a dev team. Could you review it? Thank you!

Comment by Anton Emelianov (Inactive) [ 08/Dec/21 ]

old, unsupported version of BigTest

Generated at Thu Feb 08 23:18:10 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.