我们使用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 (
我使用GitHub操作CI/CD,我用它写了一些柏树测试和YAML文件。但是当我推送存储库时,我得到了一个错误。 name: Cypress Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
你能给我一些关于如何处理这个问题的建议吗? 构建管道 npm install
package.json
"dependencies": {
"cypress": "^3.4.1"
} 发布 Powershell命令 npm ./node_modules/.bin/Cypress run
The cypress npm package is installed, but the Cypress binary is missing.
2019-10-07T18:04:59.5720120Z We expected the binar
我试图设置一个与github操作的CI工作流,并运行在几个问题。这个想法是:
artifactDownload 创建生成并上传为工件,运行4种使用下载工件的运行器并运行测试。
问题:我可以运行构建和上传,它也下载工件,但后来我陷入了错误:
我的工作流文件
name: CI Pull Request
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
br
Cypress没有读我更新的脚本。我在WebStorm中做了一些更改。Cypress开始加载文件,但随后刷新并加载一个旧文件。它不加载更新的等级库。然后,我使用Cypress中的Open in IDE链接检查该文件,它显示了最新更新的规范。为什么Cypress加载一个旧文件而不运行更新的文件?
我已经把Cypress更新到了4.12.0。关闭它,重新打开它,但它仍然不能运行我在集成目录中的文件。并且它运行的旧文件不在Integration目录中。那么,它为什么要尝试运行该文件。我以为Cypress只执行Integration目录中的文件
在我的构建脚本中,我需要评估一个Cypress配置文件。我使用以下脚本:
let appdata = process.env.LOCALAPPDATA;
let version = `11.0.1`;
let src = `${appdata}/Cypress/Cache/${version}/Cypress/resources/app/node_modules/@packages/data-context/src`;
const DataContext = require(`${src}/DataContext.js`).DataContext;
const ProjectConfigMan
在我的Azure DevOps构建任务中,我运行了一个Cypress测试。如果测试失败,构建将被取消。但是我想在Cypress发布测试结果之后运行另一个任务。
我在我的pipeline.yml文件中尝试过这个任务:
- task: PowerShell@2
inputs:
targetType: "inline"
script: "yarn test:cypress"
errorActionPreference: "continue"
displayName: "start server and run c
我有一个带有以下服务的坞-撰写文件:
后端
数据库
前部
数据库迁移
柏树(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
我的.gitlab-ci.yml文件如下所示:
image: cypress/base:14.16.0
stages:
- test
test:
stage: test
script:
- npm install
- npm run scripts
其中脚本是--> cypress run --spec cypress/integration/UI/myScript.feature
当在脚本参数后添加另一个命令来生成诱惑报告时,gitlab管道抛给我一个错误,JAVA home path未设置为生成诱惑报告。
ERROR: JAVA_HOME is not
我使用V10在本地运行了角应用程序。在构建图像的同时,我尝试用Dockerfile.But构建一个Docker映像,我的Docker映像大小高达1.32GB。有没有办法缩小它的规模?
下面是我写的Dockerfile
# base image
FROM node:12.2.0
# set working directory (also creates two folders needed for cypress)
RUN mkdir /usr/src/app && mkdir /usr/src/app/cypress && mkdir /usr/src/app