1

当我在本地设置以及同事的设置上运行时,我的规格正在通过。但他们拒绝传递我们的 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 覆盖了整个屏幕。

这怎么可能只发生在他们的环境中?为什么会这样?

编辑:更新图像和示例。

4

1 回答 1

1

原来是我bower.json文件中的一个包违反了规范。在 CircleCI 中运行它时,由于~内部版本号之前的字符而下载了最新的包bower.json

我在本地环境中有一个较旧的软件包。

于 2015-03-17T12:44:01.423 回答