Can't understand why my app is behaving like this?

Try changing:

fullscreen = 0

to:

fullscreen = 1

in your spec file.