我们正在使用 Cypress 来自动化单元、功能和表示层测试。我们的开发方法一直沿着在 React 环境中混合原子设计的路线。我们正在平衡 CSS 的无情 React 模块化与全局/区域/本地范围。因此,我们的测试组织也遵循相同的组织路线。
例如,我.../support/button_all.js在我们网站的所有 5 个断点(是的,5 个 - 不要问)中测试 UI 演示。
原子模式测试 - 所有按钮
describe('Global Button Patterns', () => {
context('mobile', () => {
beforeEach(function() {
cy.viewport(320, 740)
})
it('GLOBAL & XS bp: Buttons display as designed', () => {
// $pageURL needs be set/redefined
// by local test variable
// cy.visit('/')
// All Buttons
//cy.document()
cy.get('[data-cy=button]')
.should('be.visible')
.should('have.css', 'background-color', 'rgba(0, 0, 0, 0)')
.should('have.css', 'border-radius', '4px')
.should('have.css', 'font-size', '11px')
.should('have.css', 'font-weight', …Run Code Online (Sandbox Code Playgroud) 我已经诊断了这个问题几天了,并且已经测试了针对"meteor"和"npm"依赖项出现的顶级问题解决方案,这些解决方案与此类似.我和我的后端工程师都很难过.
我使用的是OSX 10.10.3,ruby 1.9.3,节点v0.10.36,npm 1.4.28,meteor 1.1.02.
此外,我不是代理的背后,因为错误似乎表明.
我的环境路径是:
export PATH ="/ usr/local/bin:/ usr/bin:/ bin:/ usr/sbin:/ sbin"
这是错误:
=> Started proxy.
=> Started MongoDB.
npm-container: updating npm dependencies -- hummus, shipping-ups...
npm WARN package.json packages-for-meteor-smartpackage-1wscwem@0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-1wscwem@0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-1wscwem@0.0.0 No README
data
../src/deps/LibTiff/tif_unix.c:140:6: warning: cast to 'thandle_t' (aka 'void
*') from smaller integer type 'int' [-Wint-to-void-pointer-cast]
(thandle_t) fd,
^
1 warning generated.
../src/deps/LibTiff/tif_write.c:633:49: warning: comparison of integers of
different signs: …Run Code Online (Sandbox Code Playgroud)