Skip to content

Commit

Permalink
Merge pull request #550 from Synthetixio/dev
Browse files Browse the repository at this point in the history
promote dev to master
  • Loading branch information
drptbl authored Oct 15, 2022
2 parents b900904 + 4cd45f7 commit d23a667
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 46 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/audit_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: yarn config set cache-folder .yarn-cache
continue-on-error: true

- uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # pin@v2
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # pin@v2
with:
path: |
.yarn-cache
Expand Down Expand Up @@ -101,13 +101,13 @@ jobs:
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # pin@v1
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pin@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # pin@v1
uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # pin@v1

- name: Cache Docker layers
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # pin@v2
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # pin@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: yarn config set cache-folder .yarn-cache
continue-on-error: true

- uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # pin@v2
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # pin@v2
with:
path: |
.yarn-cache
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tests with all features of cypress and playwright.

Usage examples:

- [synpress-setup-example](https://github.com/drptbl/synpress-setup-example/)
- [synpress](https://github.com/Synthetixio/synpress/tree/dev/tests/e2e)
- [kwenta](https://github.com/kwenta/kwenta/tree/dev/tests/e2e)
- [staking](https://github.com/Synthetixio/staking/tree/dev/tests/e2e)
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,22 @@
},
"dependencies": {
"@cypress/code-coverage": "^3.10.0",
"@cypress/react": "^6.2.0",
"@cypress/webpack-dev-server": "^2.3.0",
"@drptbl/gremlins.js": "^2.2.1",
"@playwright/test": "^1.26.1",
"@playwright/test": "^1.27.1",
"@synthetixio/js": "^2.41.0",
"@testing-library/cypress": "^8.0.3",
"@testing-library/react": "^13.4.0",
"@types/testing-library__cypress": "^5.0.9",
"axios": "^1.0.0",
"axios": "^1.1.2",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-react-generate-property": "^1.1.2",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-transform-react-qa-classes": "^1.6.0",
"babel-plugin-transform-react-styled-components-qa": "^2.1.0",
"bytes32": "^0.0.3",
"commander": "^9.4.1",
"cypress": "^10.9.0",
"cypress": "^10.10.0",
"cypress-wait-until": "^1.7.2",
"debug": "^4.3.4",
"dotenv": "^16.0.3",
Expand All @@ -79,7 +78,7 @@
"eslint-plugin-standard": "^4.1.0",
"eslint-plugin-testing-library": "^5.7.2",
"eslint-plugin-ui-testing": "^2.0.1",
"eslint-plugin-unicorn": "^44.0.1",
"eslint-plugin-unicorn": "^44.0.2",
"etherscan-api": "^10.2.0",
"find-config": "^1.0.0",
"node-fetch": "^2.6.1",
Expand All @@ -91,7 +90,7 @@
"devDependencies": {
"@metamask/test-dapp": "^5.2.1",
"@microsoft/eslint-formatter-sarif": "^3.0.0",
"npm-check-updates": "^16.3.8",
"npm-check-updates": "^16.3.11",
"release-it": "^15.5.0"
},
"resolutions": {
Expand Down
5 changes: 0 additions & 5 deletions plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,5 @@ module.exports = (on, config) => {
config.env.SKIP_METAMASK_SETUP = true;
}

// next component testing
if (config.testingType === 'component') {
require('@cypress/react/plugins/next')(on, config);
}

return config;
};
4 changes: 4 additions & 0 deletions synpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ if (process.env.SYNPRESS_LOCAL_TEST) {
'Loading .env config file from first matching config file - root dir, ancestor or home dir',
);
require('dotenv').config({ path: require('find-config')('.env') });
log(
'Loading .env.e2e config file from first matching config file - root dir, ancestor or home dir',
);
require('dotenv').config({ path: require('find-config')('.env.e2e') });
}

if (
Expand Down
55 changes: 25 additions & 30 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,6 @@
js-yaml "3.14.1"
nyc "15.1.0"

"@cypress/react@^6.2.0":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@cypress/react/-/react-6.2.0.tgz#5816ecd26b1595483e0ae6e4eb0dca0725d07197"
integrity sha512-arBO5/ed5MM56ypgmMugCOZoAIHH9e+7NH98oF2LCEffr8qkAV4WG5o4S+fqDjFPFP5WNZoKtPC7DEkxOm6kFA==

"@cypress/request@^2.88.10":
version "2.88.10"
resolved "https://registry.yarnpkg.com/@cypress/request/-/request-2.88.10.tgz#b66d76b07f860d3a4b8d7a0604d020c662752cce"
Expand Down Expand Up @@ -1181,13 +1176,13 @@
dependencies:
"@octokit/openapi-types" "^13.9.0"

"@playwright/test@^1.26.1":
version "1.26.1"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.26.1.tgz#73ada4e70f618bca69ba7509c4ba65b5a41c4b10"
integrity sha512-bNxyZASVt2adSZ9gbD7NCydzcb5JaI0OR9hc7s+nmPeH604gwp0zp17NNpwXY4c8nvuBGQQ9oGDx72LE+cUWvw==
"@playwright/test@^1.27.1":
version "1.27.1"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.27.1.tgz#9364d1e02021261211c8ff586d903faa79ce95c4"
integrity sha512-mrL2q0an/7tVqniQQF6RBL2saskjljXzqNcCOVMUjRIgE6Y38nCNaP+Dc2FBW06bcpD3tqIws/HT9qiMHbNU0A==
dependencies:
"@types/node" "*"
playwright-core "1.26.1"
playwright-core "1.27.1"

"@pnpm/network.ca-file@^1.0.1":
version "1.0.1"
Expand Down Expand Up @@ -2511,10 +2506,10 @@ axios@^0.21.1:
dependencies:
follow-redirects "^1.14.0"

axios@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.0.0.tgz#16ded6096c1d37650db9f6a8d48a2f7c1bb58622"
integrity sha512-SsHsGFN1qNPFT5QhSoSD37SHDfGyLSW5AESmyLk2JeCMHv5g0I9g0Hz/zQHx2KNe0jGXh2q2hAm7OdkXm360CA==
axios@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.2.tgz#8b6f6c540abf44ab98d9904e8daf55351ca4a331"
integrity sha512-bznQyETwElsXl2RK7HLLwb5GPpOLlycxHCtrpDR/4RqqBzjARaOTo3jz4IgtntWUYee7Ne4S8UHd92VCuzPaWA==
dependencies:
follow-redirects "^1.15.0"
form-data "^4.0.0"
Expand Down Expand Up @@ -4475,10 +4470,10 @@ cypress@*:
untildify "^4.0.0"
yauzl "^2.10.0"

cypress@^10.9.0:
version "10.9.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.9.0.tgz#273a61a6304766f9d6423e5ac8d4a9a11ed8b485"
integrity sha512-MjIWrRpc+bQM9U4kSSdATZWZ2hUqHGFEQTF7dfeZRa4MnalMtc88FIE49USWP2ZVtfy5WPBcgfBX+YorFqGElA==
cypress@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.10.0.tgz#fd671297b2ca3e64dfffd55fe3857c388cfbb695"
integrity sha512-bU8r44x1NIYAUNNXt3CwJpLOVth7HUv2hUhYCxZmgZ1IugowDvuHNpevnoZRQx1KKOEisLvIJW+Xen5Pjn41pg==
dependencies:
"@cypress/request" "^2.88.10"
"@cypress/xvfb" "^1.2.4"
Expand Down Expand Up @@ -5393,10 +5388,10 @@ eslint-plugin-ui-testing@^2.0.1:
dependencies:
"@typescript-eslint/experimental-utils" "^5.3.0"

eslint-plugin-unicorn@^44.0.1:
version "44.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-44.0.1.tgz#e5171368ffadd9f5d5434342edd1fd39aad817d3"
integrity sha512-ly6Ye9OfgYBCw/FfsdycCzAztcRd+pOA0F6xZwtUsUkgOBjtNR0684xC7u+0RmE3SKr3y7z8MaIWunw36tbZdg==
eslint-plugin-unicorn@^44.0.2:
version "44.0.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-44.0.2.tgz#6324a001c0a5e2ac00fb51b30db27d14c6c36ab3"
integrity sha512-GLIDX1wmeEqpGaKcnMcqRvMVsoabeF0Ton0EX4Th5u6Kmf7RM9WBl705AXFEsns56ESkEs0uyelLuUTvz9Tr0w==
dependencies:
"@babel/helper-validator-identifier" "^7.19.1"
ci-info "^3.4.0"
Expand Down Expand Up @@ -9574,10 +9569,10 @@ npm-bundled@^2.0.0:
dependencies:
npm-normalize-package-bin "^2.0.0"

npm-check-updates@^16.3.8:
version "16.3.8"
resolved "https://registry.yarnpkg.com/npm-check-updates/-/npm-check-updates-16.3.8.tgz#3f128ce8ca658f6af8f1ebfc8c905168a7996dfe"
integrity sha512-2CUeCWEs+arWQUJH2IEkiZU/Ak2fLBqGkMyM5JDkfnGhz1VHNe3yyGiXD+0JeVmjbXTEpgZ0t6C9VK52atGuAw==
npm-check-updates@^16.3.11:
version "16.3.11"
resolved "https://registry.yarnpkg.com/npm-check-updates/-/npm-check-updates-16.3.11.tgz#96e5074234301a86861c6f80d56ff43b86825960"
integrity sha512-MxdqS3kXAJasoEaz5BLqTR1Dak+Dm6PoK2N4KdKcQGUEhdVwt0ggfJ0R0Yym8sWc48CYqEl02HBkUAZFUCufHA==
dependencies:
chalk "^5.0.1"
cli-table "^0.3.11"
Expand Down Expand Up @@ -10415,10 +10410,10 @@ pkg-dir@^4.1.0:
dependencies:
find-up "^4.0.0"

playwright-core@1.26.1:
version "1.26.1"
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.26.1.tgz#a162f476488312dcf12638d97685144de6ada512"
integrity sha512-hzFchhhxnEiPc4qVPs9q2ZR+5eKNifY2hQDHtg1HnTTUuphYCBP8ZRb2si+B1TR7BHirgXaPi48LIye5SgrLAA==
playwright-core@1.27.1:
version "1.27.1"
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.27.1.tgz#840ef662e55a3ed759d8b5d3d00a5f885a7184f4"
integrity sha512-9EmeXDncC2Pmp/z+teoVYlvmPWUC6ejSSYZUln7YaP89Z6lpAaiaAnqroUt/BoLo8tn7WYShcfaCh+xofZa44Q==

pluralize@^8.0.0:
version "8.0.0"
Expand Down

0 comments on commit d23a667

Please sign in to comment.