Skip to content

Commit

Permalink
update test with retries
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Aug 9, 2022
2 parents 0dcfe74 + d201b37 commit 4c99b4d
Show file tree
Hide file tree
Showing 30 changed files with 582 additions and 247 deletions.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/4-flaky-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "❄️ Flaky test in `cypress-io/cypress` repository"
title: "Flaky test: "
labels: ["topic: flake ❄️", "stage: fire watch"]
description: Report a flaky test in the Cypress open-source repository.
body:
- type: markdown
attributes:
value: |
Have a question? 👉 [Start a new discussion](https://github.com/cypress-io/cypress/discussions) or [ask in chat](https://on.cypress.io/discord).
- type: textarea
id: dashboard
attributes:
label: Link to dashboard or CircleCI failure
description: Please include a link to the failure in the Cypress Dashboard or in CircleCI.
validations:
required: true
- type: textarea
id: github-link
attributes:
label: Link to failing test in GitHub
description: Provide the GitHub link to the failing test with the line number.
validations:
required: true
- type: textarea
id: analysis
attributes:
label: Analysis
description: If you can, provide a quick analysis of why this test is flaky.
placeholder: ex. The test appears to be flaky because...
validations:
required: true
- type: input
id: version
attributes:
label: Cypress Version
description: Provide the version of Cypress where the flake is occurring.
placeholder: ex. 10.4.0
validations:
required: true
- type: textarea
id: other
attributes:
label: Other
placeholder: Any other details?
2 changes: 1 addition & 1 deletion browser-versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"chrome:beta": "104.0.5112.79",
"chrome:beta": "105.0.5195.19",
"chrome:stable": "104.0.5112.79"
}
4 changes: 3 additions & 1 deletion npm/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc || echo 'built, with type errors'",
"build": "rollup -c rollup.config.js",
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
"build-prod": "yarn build",
"check-ts": "tsc --noEmit"
Expand All @@ -15,6 +15,8 @@
"@angular/common": "^14.0.6",
"@angular/core": "^14.0.6",
"@angular/platform-browser-dynamic": "^14.0.6",
"@rollup/plugin-node-resolve": "^11.1.1",
"rollup-plugin-typescript2": "^0.29.0",
"typescript": "~4.2.3",
"zone.js": "~0.11.4"
},
Expand Down
61 changes: 61 additions & 0 deletions npm/angular/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import ts from 'rollup-plugin-typescript2'
import resolve from '@rollup/plugin-node-resolve'

import pkg from './package.json'

const banner = `
/**
* ${pkg.name} v${pkg.version}
* (c) ${new Date().getFullYear()} Cypress.io
* Released under the MIT License
*/
`

function createEntry () {
const input = 'src/index.ts'
const format = 'es'

const config = {
input,
external: [
'@angular/core',
'@angular/core/testing',
'@angular/common',
'@angular/platform-browser-dynamic/testing',
'zone.js',
'zone.js/testing',
],
plugins: [
resolve(),
],
output: {
banner,
name: 'CypressAngular',
file: pkg.module,
format,
exports: 'auto',
},
}

console.log(`Building ${format}: ${config.output.file}`)

config.plugins.push(
ts({
check: true,
tsconfigOverride: {
compilerOptions: {
declaration: true,
target: 'es6', // not sure what this should be?
module: 'esnext',
},
exclude: [],
},
}),
)

return config
}

export default [
createEntry(),
]
Loading

0 comments on commit 4c99b4d

Please sign in to comment.