在Jenkins上遇到这个问题。我已经运行Cypress一个月了,没有任何问题。一旦我从5.3.0更新了版本,-> 5.5.0就开始出现这个问题。
注意:我的测试不在docker容器中。
We detected that the Chromium Renderer process just crashed.
This is the equivalent to seeing the 'sad face' when Chrome dies.
This can happen for a number of different reasons:
- You wrote an
当我尝试使用cypress open或cypress run时,会得到以下错误:
✖ Verifying Cypress can run /*/*/.cache/Cypress/3.1.5/Cypress
→ Cypress Version: 3.1.5
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.
当我在Cypress测试中查看某些路由1/8次时,它失败了。有没有办法让Cypress测试总是通过,而不是在多次尝试后随机失败? 下面是我的代码: it("Check if scroll is working on list", () => {
cy.server()
cy.route('GET', '**/api/scorer/company/news/**', { timeout: 15000 }).as('loadMoreAbstracts');
cy.get('[data-cy=Virtual
我在吉特布的行动上有个问题。我正在使用Cypress测试我的应用程序的前端,在Cypress应用程序中一切都很完美。但是当我在GitHub中把所有的东西都推到主程序上并通过Github操作运行测试时,同样的小测试也会失败,他会跟着错误去做。
Timed out retrying after 5000ms: Expected to find element "xxx" but never found it.
这一行是有问题的:
cy.purposeElement("delete_user_dialog").should('be.visible')
我有一个带有以下服务的坞-撰写文件:
后端
数据库
前部
数据库迁移
柏树(E2E试验)
我所面临的问题是当我运行docker-compose up时,第一个启动的服务是cypress。
Cypress立即尝试到达backend,但失败,给出了错误:
> http://backend:8000
We are verifying this server because it has been configured as your `baseUrl`.
Cypress automatically waits until your server is acces
我有一个Docker镜像,我想在本地运行,但我认为它是由于Qemu的问题而失败的,这似乎源于试图在M1芯片上运行Cypress:
REPOSITORY TAG IMAGE ID CREATED SIZE
dna local 097c5f291db5 2 hours ago 3.66GB
当我尝试使用docker run dna:local在本地运行镜像时,我得到了以下信息:
WARNING: The requested image's platform (linux/amd64) does not match t
在我的Azure DevOps构建任务中,我运行了一个Cypress测试。如果测试失败,构建将被取消。但是我想在Cypress发布测试结果之后运行另一个任务。
我在我的pipeline.yml文件中尝试过这个任务:
- task: PowerShell@2
inputs:
targetType: "inline"
script: "yarn test:cypress"
errorActionPreference: "continue"
displayName: "start server and run c
我尝试在GitLab CI runner中下载并安装Cypress,并得到以下错误输出: The cypress npm package is installed, but the Cypress binary is missing.
We expected the binary to be installed here: /root/.cache/Cypress/4.8.0/Cypress/Cypress
Reasons it may be missing:
- You're caching 'node_modules' but are not caching th
这是我的docker-compose.yml,我试图在我本地的项目上运行cypress,但它拒绝在端口上运行。我哪里做错了?
version: '3.2'
# run Cypress tests and exit with command
# docker-compose up --exit-code-from cypress
services:
cypress:
# the Docker image to use from https://github.com/cypress-io/cypress-docker-images
image:
我正在使用teamcity-ci来运行cypress测试。目前,cypress还不支持teamcity中的并行测试。也许cypress并行测试支持与仪表板相关。
如果我不用柏树仪表盘。是否可以在teamcity中并行运行cypress测试。
我通过docker-compose run cypress运行我的测试
我有一个Jenkins构建,其中包括启动和关闭一些码头工作。但是,由于错误,它已经开始失败:
$ docker-compose -f tests/docker-compose.ci-cypress.yml down --remove-orphans -v
Removing network tests_default
error while removing network: network tests_default id a9d08e07cfb56c3003d68677e93a0e5e705594fcdf112c757bded0cacb5562db has active endpoints
我正在运行AzureDevOps CI/CD中的Cypress UI测试,以及大多数UI测试是如何失败的。几天前所有的测试都进行得很好。它正在抛出一个Timed out waiting for the browser to connect. Retrying.错误:关于如何解决该问题的任何建议。
环境详细信息: Cypress版本: 3.4.1,Node: 10.x,Azure DevOps CI/CD
Running: report/send-report.spec.js... (12 of 14)
2019-10-10T00:47:31.0
我正在尝试使用Docker运行Cypress测试head(无人)。从我遵循的教程中,我得到了这个命令: docker run -it -v ~/tdd/services/cypress:/cypress -w /cypress --entrypoint=cypress cypress/included:4.9.0 run 这会抛出: Can't run because no spec files were found.
We searched for any files inside of this folder:
/cypress/cypress/integration 我将C
对于某些站点,在Docker容器中运行时,无头铬正在失败:
[0520/093103.024239:ERROR:platform_shared_memory_region_posix.cc(268)] Failed to reserve 16728064 bytes for shared memory.: No space left on device (28)
[0520/093103.024591:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_UNEXPECTED_NULL_POINTER (null f
我正在尝试对容器化的Nginx运行Cypress测试: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7c3efd24e6e6 tdd_nginx "/docker-entrypoint.…" 19 minutes ago Up 19 minutes 0.0.0.0:80->80/tcp, :::80->80/t
我正在写一个Cypress测试来登录一个网站。有username和password字段以及一个Submit按钮。大多数情况下,登录都很简单,但有时会首先出现一个警告对话框,必须将其清除。 我试过这个: cy.get('#login-username').type('username');
cy.get('#login-password').type(`password{enter}`);
// Check for a possible warning dialog and dismiss it
if (cy.get('.warning