gemini icon indicating copy to clipboard operation
gemini copied to clipboard

hover state always affect the result

Open nanjixiong218 opened this issue 8 years ago β€’ 10 comments

sometimes the same test code get diff result picture because of the hover stateοΌ› so the expected png and the actual png will be different when run times; just like:

image

sometimes it passed,sometimes it failed;

i have done some time waiting;

image

nanjixiong218 avatar Dec 29 '16 03:12 nanjixiong218

@sipayRT can you have a look?

nanjixiong218 avatar Jan 04 '17 06:01 nanjixiong218

I have the same problem. The code that I didn't change for a month, stopped working in the way that tests are failing because of the hover state.

It seems like the hover state happens only by update task.

HeeL avatar Jan 04 '17 15:01 HeeL

btw, quick hack fix for us was:


            .setUrl('/hi/no-images')
            .before(function (actions) {
                actions.focus('body');
            })
            .capture('plain');


HeeL avatar Jan 04 '17 15:01 HeeL

has anyone looked into this at all? Quite an issue for us ;(

gilligan avatar Jan 16 '17 10:01 gilligan

Correct me if I'm wrong, but the problem is in the dependency of gemini. Can some core-team comment on this and mark as won't-fix if needed?

HeeL avatar Jan 17 '17 09:01 HeeL

@HeeL uhrm.. if the problem with the dependency basically breaks gemini core functionality I don't think that setting this problem to wont-fix would be appropriate

gilligan avatar Jan 17 '17 09:01 gilligan

Yes, actually the version of this package could be downgraded till the problem will be solved in newer versions.

HeeL avatar Jan 17 '17 09:01 HeeL

Hello guys. I apologize that we took so long to answer. This problem is still reproduced? Can you show me your gemini config and specify please the used gemini version?

In our projects I haven't met such a problem...

DudaGod avatar Jan 24 '17 21:01 DudaGod

@DudaGod I guess one of the reason why you don't hit this problem is because you are not using image composition for creating visual tests for long scrollable pages. By doing selective captures, you don't experience this problem.

HeeL avatar Jan 24 '17 23:01 HeeL

Any progress on this? Just found the same and weird thing it's not consistent for some reason.

I remember reading in the docs that before suite Gemini will reset mouse position to avoid any side affects, but for doing capture it will point mouse into captured element center.

artemyarulin avatar Aug 23 '17 08:08 artemyarulin