我正在学习如何使用GitLab CI / CD。我的示例项目是一个样板VueJS应用程序。 我有单元测试,docker构建和到注册表的推送工作,但我在Cypress e2e测试中苦苦挣扎。 e2e测试在验证cypress时挂起,并且测试永远不会结束。以下是log的输出。 Running with gitlab-runner 13.8.0 (775dd39d)
on Cypress/base:14.15.4 GGTzNUZr
Preparing the "docker" executor
00:12
Using Docker executor with image cypr
我们使用Contentful和Shopify集成编写Gatsby.js。我们有Cypress测试,我们在GitHub Actions上运行。但是我有一些错误,比如
1) Test shopify cart
Buying only first product
should open product modal:
AssertionError: Timed out retrying: Expected to find element: `[data-test=product-modal]`, but never found it.
at ensureExistence (
当测试用例失败时,我想记录额外的数据。在哪里可以最好地插入自定义错误处理程序?
例如:
cy.get('something')
.should('have.property', 'blah')
当这在Cypress仪表板中失败时,我得到:
CypressError: Timed out retrying: expected 'something' to have a property 'blah'
at Object.cypressErr (https://my.website.com/__cypress/
我正在为我的selenium脚本设置jenkins,当我运行jenkins时,它正在headless browser上运行脚本。当我在本地运行mvn test命令时,它会打开浏览器并启动脚本。但在jenkins上,它只显示以下控制台,而不启动浏览器
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
1554541558637 mozrunner::runner INFO Running command: "C:\
不久前,这些测试的脚本还可以完美地工作。据我所知,唯一的更改是URL。 这是一个有问题的测试。请注意,我们已经将URL替换为假URL。 我们已经尝试过重新安装Cypress。我们的支持文件中没有任何内容,等等。 在代码中没有任何地方我尝试设置属性。无论哪种方式,它似乎都会在运行测试之前抛出错误。 错误是: "cannot set property name of which has only a getter" ? /// <reference types="cypress" />
describe('Sign up', (