当我在本地设置以及同事的设置上运行时,我的规格正在通过。但他们拒绝传递我们的 CI。
我收到以下错误:
Failure/Error: page.create_template_shift(user, day)
Capybara::Poltergeist::MouseEventFailed:
Firing a click at co-ordinates [960, 267.5] failed. Poltergeist detected another element with CSS selector 'html.js.no-flexbox.flexboxlegacy.canvas.canvastext.no-webgl.touch.no-geolocation.postmessage.websqldatabase.no-indexeddb.hashchange.history.draganddrop.websockets.rgba.hsla.multiplebgs.backgroundsize.borderimage.borderradius.boxshadow.textshadow.opacity.cssanimations.csscolumns.cssgradients.cssreflections.csstransforms.no-csstransforms3d.csstransitions.fontface.generatedcontent.no-video.no-audio.localstorage.sessionstorage.webworkers.applicationcache.svg.inlinesvg.smil.svgclippaths body.templates.show.modal-open div.modal-backdrop.fade.in' at this position. It may be overlapping the element you are trying to interact with. If you don't care about overlapping elements, try using node.trigger('click').
这是来自的屏幕截图capybara-screenshot
:
如您所见,我正在尝试单击“保存”按钮,但无法单击,因为似乎有一个黑色/褪色的 div 覆盖了整个屏幕。
这怎么可能只发生在他们的环境中?为什么会这样?
编辑:更新图像和示例。