From 6ed0d27fa17fb2b64a9aa249fa74f7b9cb048efa Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Mon, 29 Jan 2024 14:07:25 +0100 Subject: [PATCH 1/9] =?UTF-8?q?=E2=9C=A8=20feat(metamask):=20Add=20support?= =?UTF-8?q?=20for=20NFT=20actions=20(#1086)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NotificationPage/actions/transaction.ts | 23 +++++ .../selectors/transactionPage.ts | 7 +- .../e2e/metamask/confirmTransaction.spec.ts | 85 +++++++++++++++++++ 3 files changed, 114 insertions(+), 1 deletion(-) diff --git a/wallets/metamask/src/pages/NotificationPage/actions/transaction.ts b/wallets/metamask/src/pages/NotificationPage/actions/transaction.ts index 3573bafbf..acce2b7cb 100644 --- a/wallets/metamask/src/pages/NotificationPage/actions/transaction.ts +++ b/wallets/metamask/src/pages/NotificationPage/actions/transaction.ts @@ -32,10 +32,31 @@ export type GasSetting = z.input const confirmTransaction = async (notificationPage: Page, options: GasSetting) => { const gasSetting = GasSetting.parse(options) + const handleNftSetApprovalForAll = async (page: Page) => { + try { + const nftApproveButtonLocator = page.locator( + Selectors.TransactionPage.nftApproveAllConfirmationPopup.approveButton + ) + const isNfTPopupHidden = await waitFor(() => nftApproveButtonLocator.isHidden(), 3_000, false) + + if (!isNfTPopupHidden) { + await nftApproveButtonLocator.click() + } + } catch (e) { + if (page.isClosed()) { + return + } + + throw new Error(`Failed to handle NFT setApprovalForAll popup: ${e}`) + } + } + // By default, the `site` gas setting is used. if (gasSetting === 'site') { await notificationPage.locator(Selectors.ActionFooter.confirmActionButton).click() + await handleNftSetApprovalForAll(notificationPage) + return } @@ -119,6 +140,8 @@ const confirmTransaction = async (notificationPage: Page, options: GasSetting) = await waitFor(waitForAction, 3_000, true) await notificationPage.locator(Selectors.ActionFooter.confirmActionButton).click() + + await handleNftSetApprovalForAll(notificationPage) } const confirmTransactionAndWaitForMining = async (walletPage: Page, notificationPage: Page, options: GasSetting) => { diff --git a/wallets/metamask/src/pages/NotificationPage/selectors/transactionPage.ts b/wallets/metamask/src/pages/NotificationPage/selectors/transactionPage.ts index e8fea7a0c..2daa5ba45 100644 --- a/wallets/metamask/src/pages/NotificationPage/selectors/transactionPage.ts +++ b/wallets/metamask/src/pages/NotificationPage/selectors/transactionPage.ts @@ -35,6 +35,11 @@ const editGasFeeMenu = { advancedGasFeeMenu } +const nftApproveAllConfirmationPopup = { + approveButton: '.set-approval-for-all-warning__content button.set-approval-for-all-warning__footer__approve-button' +} + export default { - editGasFeeMenu + editGasFeeMenu, + nftApproveAllConfirmationPopup } diff --git a/wallets/metamask/test/e2e/metamask/confirmTransaction.spec.ts b/wallets/metamask/test/e2e/metamask/confirmTransaction.spec.ts index 88044a3f0..b000a0403 100644 --- a/wallets/metamask/test/e2e/metamask/confirmTransaction.spec.ts +++ b/wallets/metamask/test/e2e/metamask/confirmTransaction.spec.ts @@ -3,6 +3,7 @@ import { testWithMetaMask } from '../testWithMetaMask' const test = testWithMetaMask.extend<{ connectAndTriggerEIP1559Transaction: () => Promise + connectDeployAndMintNft: () => Promise }>({ connectAndTriggerEIP1559Transaction: async ({ page, connectToAnvil }, use) => { await use(async () => { @@ -10,6 +11,17 @@ const test = testWithMetaMask.extend<{ await page.locator('#sendEIP1559Button').click() }) + }, + connectDeployAndMintNft: async ({ page, connectToAnvil, metamask }, use) => { + await use(async () => { + await connectToAnvil() + + await page.locator('#deployNFTsButton').click() + await metamask.confirmTransaction() + + await page.locator('#mintButton').click() + await metamask.confirmTransaction() + }) } }) @@ -40,6 +52,64 @@ describe('with default gas setting', () => { await metamask.confirmTransaction() }) + + describe('NFTs', () => { + test('should confirm `watch NFT` request', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#watchNFTButton').click() + + await metamask.confirmTransaction() + }) + + test('should confirm `watch all NFTs` request', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#watchNFTsButton').click() + + await metamask.confirmTransaction() + }) + + test('should confirm `approve` transaction', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#approveButton').click() + + await metamask.confirmTransaction() + + await expect(page.locator('#nftsStatus')).toHaveText('Approve completed') + }) + + test('should confirm `set approval for all` transaction', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#setApprovalForAllButton').click() + + await metamask.confirmTransaction() + + await expect(page.locator('#nftsStatus')).toHaveText('Set Approval For All completed') + }) + + test('should confirm `revoke` transaction', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#revokeButton').click() + + await metamask.confirmTransaction() + + await expect(page.locator('#nftsStatus')).toHaveText('Revoke completed') + }) + + test('should confirm `transfer from` transaction', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#transferFromButton').click() + + await metamask.confirmTransaction() + + await expect(page.locator('#nftsStatus')).toHaveText('Transfer From completed') + }) + }) }) describe('with custom gas setting', () => { @@ -163,5 +233,20 @@ describe('with custom gas setting', () => { } }) }) + + test('should confirm `set approval for all` transaction', async ({ page, metamask, connectDeployAndMintNft }) => { + await connectDeployAndMintNft() + + await page.locator('#setApprovalForAllButton').click() + + await metamask.confirmTransaction({ + gasSetting: { + maxBaseFee: 250, + priorityFee: 150 + } + }) + + await expect(page.locator('#nftsStatus')).toHaveText('Set Approval For All completed') + }) }) }) From dbea9b7427335df01cb4478aac02daaa5147e7ff Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Mon, 29 Jan 2024 14:32:15 +0100 Subject: [PATCH 2/9] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(metamask):=20?= =?UTF-8?q?Rename=20to=20`approveTokenPermission`=20(#1087)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/classes/MetaMask.md | 64 +++++++++---------- wallets/metamask/src/metamask.ts | 12 ++-- .../src/pages/NotificationPage/page.ts | 7 +- .../e2e/metamask/approvePermission.spec.ts | 12 ++-- .../e2e/metamask/rejectPermission.spec.ts | 2 +- 5 files changed, 50 insertions(+), 47 deletions(-) diff --git a/docs/api/classes/MetaMask.md b/docs/api/classes/MetaMask.md index 993969147..3051ef60d 100644 --- a/docs/api/classes/MetaMask.md +++ b/docs/api/classes/MetaMask.md @@ -11,8 +11,8 @@ This class is the heart of Synpress's MetaMask API. - [addNetwork()](MetaMask.md#addnetwork) - [addNewAccount()](MetaMask.md#addnewaccount) - [approveNewNetwork()](MetaMask.md#approvenewnetwork) - - [approvePermission()](MetaMask.md#approvepermission) - [approveSwitchNetwork()](MetaMask.md#approveswitchnetwork) + - [approveTokenPermission()](MetaMask.md#approvetokenpermission) - [confirmSignature()](MetaMask.md#confirmsignature) - [confirmTransaction()](MetaMask.md#confirmtransaction) - [connectToDapp()](MetaMask.md#connecttodapp) @@ -23,9 +23,9 @@ This class is the heart of Synpress's MetaMask API. - [openSettings()](MetaMask.md#opensettings) - [openSidebarMenu()](MetaMask.md#opensidebarmenu) - [rejectNewNetwork()](MetaMask.md#rejectnewnetwork) - - [rejectPermission()](MetaMask.md#rejectpermission) - [rejectSignature()](MetaMask.md#rejectsignature) - [rejectSwitchNetwork()](MetaMask.md#rejectswitchnetwork) + - [rejectTokenPermission()](MetaMask.md#rejecttokenpermission) - [rejectTransaction()](MetaMask.md#rejecttransaction) - [resetAccount()](MetaMask.md#resetaccount) - [switchAccount()](MetaMask.md#switchaccount) @@ -138,16 +138,30 @@ Approves a new network request. *** -### approvePermission() +### approveSwitchNetwork() + +```ts +approveSwitchNetwork(): Promise +``` + +Approves a switch network request. + +#### Returns + +`Promise`\<`void`\> + +*** + +### approveTokenPermission() ```ts -approvePermission(options?): Promise +approveTokenPermission(options?): Promise ``` Approves a permission request to spend tokens. ::: warning -This function does not work with the NFTs approvals. +For NFT approvals, use `confirmTransaction` method. ::: #### Parameters @@ -164,20 +178,6 @@ This function does not work with the NFTs approvals. *** -### approveSwitchNetwork() - -```ts -approveSwitchNetwork(): Promise -``` - -Approves a switch network request. - -#### Returns - -`Promise`\<`void`\> - -*** - ### confirmSignature() ```ts @@ -343,17 +343,13 @@ Rejects a new network request. *** -### rejectPermission() +### rejectSignature() ```ts -rejectPermission(): Promise +rejectSignature(): Promise ``` -Rejects a permission request to spend tokens. - -::: warning -This function does not work with the NFTs approvals. -::: +Rejects a signature request. This function supports all types of commonly used signatures. #### Returns @@ -361,13 +357,13 @@ This function does not work with the NFTs approvals. *** -### rejectSignature() +### rejectSwitchNetwork() ```ts -rejectSignature(): Promise +rejectSwitchNetwork(): Promise ``` -Rejects a signature request. This function supports all types of commonly used signatures. +Rejects a switch network request. #### Returns @@ -375,13 +371,17 @@ Rejects a signature request. This function supports all types of commonly used s *** -### rejectSwitchNetwork() +### rejectTokenPermission() ```ts -rejectSwitchNetwork(): Promise +rejectTokenPermission(): Promise ``` -Rejects a switch network request. +Rejects a permission request to spend tokens. + +::: warning +For NFT approvals, use `confirmTransaction` method. +::: #### Returns diff --git a/wallets/metamask/src/metamask.ts b/wallets/metamask/src/metamask.ts index 6121dec57..62701875a 100644 --- a/wallets/metamask/src/metamask.ts +++ b/wallets/metamask/src/metamask.ts @@ -256,34 +256,34 @@ export class MetaMask { * Approves a permission request to spend tokens. * * ::: warning - * This function does not work with the NFTs approvals. + * For NFT approvals, use `confirmTransaction` method. * ::: * * @param options - The permission options. * @param options.spendLimit - The spend limit to use for the permission. * @param options.gasSetting - The gas setting to use for the approval transaction. */ - async approvePermission(options?: { spendLimit?: 'max' | number; gasSetting?: GasSetting }) { + async approveTokenPermission(options?: { spendLimit?: 'max' | number; gasSetting?: GasSetting }) { if (!this.extensionId) { throw NO_EXTENSION_ID_ERROR } - await this.notificationPage.approvePermission(this.extensionId, options) + await this.notificationPage.approveTokenPermission(this.extensionId, options) } /** * Rejects a permission request to spend tokens. * * ::: warning - * This function does not work with the NFTs approvals. + * For NFT approvals, use `confirmTransaction` method. * ::: */ - async rejectPermission() { + async rejectTokenPermission() { if (!this.extensionId) { throw NO_EXTENSION_ID_ERROR } - await this.notificationPage.rejectPermission(this.extensionId) + await this.notificationPage.rejectTokenPermission(this.extensionId) } /** diff --git a/wallets/metamask/src/pages/NotificationPage/page.ts b/wallets/metamask/src/pages/NotificationPage/page.ts index 1e9ed7934..33ee8bfbb 100644 --- a/wallets/metamask/src/pages/NotificationPage/page.ts +++ b/wallets/metamask/src/pages/NotificationPage/page.ts @@ -108,7 +108,10 @@ export class NotificationPage { await transaction.confirmAndWaitForMining(this.page, notificationPage, options?.gasSetting ?? 'site') } - async approvePermission(extensionId: string, options?: { spendLimit?: 'max' | number; gasSetting?: GasSetting }) { + async approveTokenPermission( + extensionId: string, + options?: { spendLimit?: 'max' | number; gasSetting?: GasSetting } + ) { const notificationPage = await getNotificationPageAndWaitForLoad(this.page.context(), extensionId) if (options?.spendLimit !== undefined) { @@ -118,7 +121,7 @@ export class NotificationPage { await approvePermission.approve(notificationPage, options?.gasSetting ?? 'site') } - async rejectPermission(extensionId: string) { + async rejectTokenPermission(extensionId: string) { const notificationPage = await getNotificationPageAndWaitForLoad(this.page.context(), extensionId) await approvePermission.reject(notificationPage) diff --git a/wallets/metamask/test/e2e/metamask/approvePermission.spec.ts b/wallets/metamask/test/e2e/metamask/approvePermission.spec.ts index b4609cbe3..99ceef382 100644 --- a/wallets/metamask/test/e2e/metamask/approvePermission.spec.ts +++ b/wallets/metamask/test/e2e/metamask/approvePermission.spec.ts @@ -23,7 +23,7 @@ describe('with default gas setting', () => { await page.locator('#approveTokens').click() - await metamask.approvePermission() + await metamask.approveTokenPermission() }) test('should approve tokens with the `max` limit', async ({ page, metamask, deployToken }) => { @@ -31,7 +31,7 @@ describe('with default gas setting', () => { await page.locator('#approveTokens').click() - await metamask.approvePermission({ spendLimit: 'max' }) + await metamask.approveTokenPermission({ spendLimit: 'max' }) }) test('should approve tokens with the custom limit', async ({ page, metamask, deployToken }) => { @@ -39,7 +39,7 @@ describe('with default gas setting', () => { await page.locator('#approveTokens').click() - await metamask.approvePermission({ spendLimit: 420 }) + await metamask.approveTokenPermission({ spendLimit: 420 }) }) }) @@ -49,7 +49,7 @@ describe('with custom gas setting', () => { await page.locator('#approveTokens').click() - await metamask.approvePermission({ + await metamask.approveTokenPermission({ gasSetting: 'site' }) }) @@ -63,7 +63,7 @@ describe('with custom gas setting', () => { await page.locator('#approveTokens').click() - await metamask.approvePermission({ + await metamask.approveTokenPermission({ spendLimit: 'max', gasSetting: { maxBaseFee: 250, @@ -81,7 +81,7 @@ describe('with custom gas setting', () => { await page.locator('#approveTokens').click() - await metamask.approvePermission({ + await metamask.approveTokenPermission({ spendLimit: 420, gasSetting: { maxBaseFee: 250, diff --git a/wallets/metamask/test/e2e/metamask/rejectPermission.spec.ts b/wallets/metamask/test/e2e/metamask/rejectPermission.spec.ts index 0aa0fad0f..25f31d7de 100644 --- a/wallets/metamask/test/e2e/metamask/rejectPermission.spec.ts +++ b/wallets/metamask/test/e2e/metamask/rejectPermission.spec.ts @@ -14,5 +14,5 @@ test('should reject approve request', async ({ page, metamask, connectToAnvil }) await page.locator('#approveTokens').click() - await metamask.rejectPermission() + await metamask.rejectTokenPermission() }) From f60c53238c8cc926c2bceda236b65b44bae4674d Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Mon, 29 Jan 2024 16:17:13 +0100 Subject: [PATCH 3/9] =?UTF-8?q?=F0=9F=90=9B=20fix(docs):=20Handle=20clean?= =?UTF-8?q?=20urls=20correct=20on=20Vercel=20(#1088)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vercel.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..bd6fd8faa --- /dev/null +++ b/vercel.json @@ -0,0 +1,3 @@ +{ + "cleanUrls": true +} From 98aaa7ebe3b1fd49e0a2bff525d94fe61f1c2f62 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Mon, 29 Jan 2024 16:25:16 +0100 Subject: [PATCH 4/9] =?UTF-8?q?=F0=9F=93=9D=20chore(docs):=20Add=20note=20?= =?UTF-8?q?about=20headed=20mode=20for=20MetaMask=20on=20CI=20(#1089)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/known-issues.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/known-issues.md b/docs/docs/known-issues.md index f871ce8d2..32144ecb5 100644 --- a/docs/docs/known-issues.md +++ b/docs/docs/known-issues.md @@ -15,3 +15,7 @@ If you require the previews for development purposes, your only option is to com ### MetaMask is not working in headless mode on GitHub Actions CI Due to a bug in MetaMask, it's impossible to run MetaMask in headless mode on GitHub Actions. We're certain this bug affects other CI providers, however, we have yet to test it. + +::: warning NOTE +You can run the tests in the headful mode on CI, and they will work just fine. +::: From 103810b628b67c296b178641004bc42b0c44104b Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Tue, 30 Jan 2024 18:34:33 +0100 Subject: [PATCH 5/9] =?UTF-8?q?=E2=9C=A8=20feat(docs):=20Add=20favicon=20(?= =?UTF-8?q?#1090)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.ts | 1 + docs/public/favicon.ico | Bin 0 -> 12014 bytes 2 files changed, 1 insertion(+) create mode 100644 docs/public/favicon.ico diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 00bf0067a..abd32544a 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -9,6 +9,7 @@ export default defineConfig({ title: 'Synpress', description: 'E2E testing library for Web3 dapps.', lastUpdated: true, + head: [['link', { rel: 'icon', href: '/favicon.ico' }]], themeConfig: { editLink: { pattern: 'https://github.com/Synthetixio/synpress/tree/new-dawn/docs/:path', diff --git a/docs/public/favicon.ico b/docs/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..66b08d6379712f0b73db0fee131d1f50b08a03e2 GIT binary patch literal 12014 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 X&+qcQdNcpf-dC4}eiq_pF~|NFwh}<7 literal 0 HcmV?d00001 From 6cbbb050d629fe520fcba4e9f97b3a1a054f0ef6 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Wed, 31 Jan 2024 14:33:12 +0100 Subject: [PATCH 6/9] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20chore(tsconfig):=20?= =?UTF-8?q?Prepare=20package=20for=20release=20(#1091)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/package.json | 2 +- docs/tsconfig.json | 2 +- packages/core/package.json | 2 +- packages/core/tsconfig.build.json | 2 +- packages/fixtures/package.json | 2 +- packages/fixtures/tsconfig.json | 2 +- packages/tsconfig/package.json | 4 ++-- pnpm-lock.yaml | 26 +++++++++++++------------- release/package.json | 2 +- release/tsconfig.json | 2 +- wallets/metamask/package.json | 2 +- wallets/metamask/tsconfig.build.json | 2 +- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/package.json b/docs/package.json index ba6dd7bd8..981ba4415 100644 --- a/docs/package.json +++ b/docs/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@synthetixio/synpress": "workspace:*", - "tsconfig": "workspace:*", + "@synthetixio/synpress-tsconfig": "workspace:*", "typedoc": "^0.25.6", "typedoc-plugin-markdown": "4.0.0-next.38", "typedoc-vitepress-theme": "^1.0.0-next.4", diff --git a/docs/tsconfig.json b/docs/tsconfig.json index da24f2723..bb0ba38bc 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", + "extends": "@synthetixio/synpress-tsconfig/base.json", "compilerOptions": { "rootDir": "." }, diff --git a/packages/core/package.json b/packages/core/package.json index 8d8304e55..105e971b8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -42,6 +42,7 @@ "zod": "^3.22.4" }, "devDependencies": { + "@synthetixio/synpress-tsconfig": "workspace:*", "@types/archiver": "^5.3.3", "@types/fs-extra": "^11.0.2", "@types/gradient-string": "^1.1.4", @@ -53,7 +54,6 @@ "memfs": "^4.5.0", "msw": "^2.0.11", "rimraf": "^5.0.1", - "tsconfig": "workspace:*", "typescript": "^5.2.2", "vitest": "^0.34.6" }, diff --git a/packages/core/tsconfig.build.json b/packages/core/tsconfig.build.json index 97afa3ef9..9af73f809 100644 --- a/packages/core/tsconfig.build.json +++ b/packages/core/tsconfig.build.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", + "extends": "@synthetixio/synpress-tsconfig/base.json", "compilerOptions": { "rootDir": "src", "outDir": "types", diff --git a/packages/fixtures/package.json b/packages/fixtures/package.json index f734bb4cf..365d7bfa8 100644 --- a/packages/fixtures/package.json +++ b/packages/fixtures/package.json @@ -31,10 +31,10 @@ "zod": "^3.22.4" }, "devDependencies": { + "@synthetixio/synpress-tsconfig": "workspace:*", "@types/fs-extra": "^11.0.2", "@types/node": "^20.8.0", "rimraf": "^5.0.1", - "tsconfig": "workspace:*", "tsup": "^7.2.0", "typescript": "^5.2.2" }, diff --git a/packages/fixtures/tsconfig.json b/packages/fixtures/tsconfig.json index 97afa3ef9..9af73f809 100644 --- a/packages/fixtures/tsconfig.json +++ b/packages/fixtures/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", + "extends": "@synthetixio/synpress-tsconfig/base.json", "compilerOptions": { "rootDir": "src", "outDir": "types", diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 00010618d..32b798b2b 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,7 +1,7 @@ { - "name": "tsconfig", + "name": "@synthetixio/synpress-tsconfig", "version": "0.0.0", - "private": true, + "type": "module", "files": [ "base.json" ] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 30388fdbc..561321e64 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,7 +41,7 @@ importers: '@synthetixio/synpress': specifier: workspace:* version: link:../release - tsconfig: + '@synthetixio/synpress-tsconfig': specifier: workspace:* version: link:../packages/tsconfig typedoc: @@ -121,6 +121,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + '@synthetixio/synpress-tsconfig': + specifier: workspace:* + version: link:../tsconfig '@types/archiver': specifier: ^5.3.3 version: 5.3.3 @@ -154,9 +157,6 @@ importers: rimraf: specifier: ^5.0.1 version: 5.0.1 - tsconfig: - specifier: workspace:* - version: link:../tsconfig typescript: specifier: ^5.2.2 version: 5.2.2 @@ -182,6 +182,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + '@synthetixio/synpress-tsconfig': + specifier: workspace:* + version: link:../tsconfig '@types/fs-extra': specifier: ^11.0.2 version: 11.0.2 @@ -191,9 +194,6 @@ importers: rimraf: specifier: ^5.0.1 version: 5.0.1 - tsconfig: - specifier: workspace:* - version: link:../tsconfig tsup: specifier: ^7.2.0 version: 7.2.0(typescript@5.2.2) @@ -218,15 +218,15 @@ importers: specifier: workspace:* version: link:../wallets/metamask devDependencies: + '@synthetixio/synpress-tsconfig': + specifier: workspace:* + version: link:../packages/tsconfig '@types/node': specifier: ^20.8.0 version: 20.8.0 rimraf: specifier: ^5.0.1 version: 5.0.1 - tsconfig: - specifier: workspace:* - version: link:../packages/tsconfig tsup: specifier: ^7.2.0 version: 7.2.0(typescript@5.2.2) @@ -249,6 +249,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + '@synthetixio/synpress-tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig '@types/node': specifier: ^20.8.0 version: 20.8.0 @@ -258,9 +261,6 @@ importers: rimraf: specifier: ^5.0.1 version: 5.0.1 - tsconfig: - specifier: workspace:* - version: link:../../packages/tsconfig tsup: specifier: ^7.2.0 version: 7.2.0(typescript@5.2.2) diff --git a/release/package.json b/release/package.json index 276cb695d..fc7218c1d 100644 --- a/release/package.json +++ b/release/package.json @@ -31,9 +31,9 @@ "@synthetixio/synpress-metamask": "workspace:*" }, "devDependencies": { + "@synthetixio/synpress-tsconfig": "workspace:*", "@types/node": "^20.8.0", "rimraf": "^5.0.1", - "tsconfig": "workspace:*", "tsup": "^7.2.0", "typescript": "^5.2.2" }, diff --git a/release/tsconfig.json b/release/tsconfig.json index 228a21766..8ad5db0e8 100644 --- a/release/tsconfig.json +++ b/release/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", + "extends": "@synthetixio/synpress-tsconfig/base.json", "compilerOptions": { "rootDir": "src", "outDir": "types", diff --git a/wallets/metamask/package.json b/wallets/metamask/package.json index 2318d48fa..47e331f24 100644 --- a/wallets/metamask/package.json +++ b/wallets/metamask/package.json @@ -35,10 +35,10 @@ "zod": "^3.22.4" }, "devDependencies": { + "@synthetixio/synpress-tsconfig": "workspace:*", "@types/node": "^20.8.0", "@vitest/coverage-v8": "1.0.0-beta.0", "rimraf": "^5.0.1", - "tsconfig": "workspace:*", "tsup": "^7.2.0", "typescript": "^5.2.2", "vitest": "^0.34.6" diff --git a/wallets/metamask/tsconfig.build.json b/wallets/metamask/tsconfig.build.json index 97afa3ef9..9af73f809 100644 --- a/wallets/metamask/tsconfig.build.json +++ b/wallets/metamask/tsconfig.build.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", + "extends": "@synthetixio/synpress-tsconfig/base.json", "compilerOptions": { "rootDir": "src", "outDir": "types", From 6180fcc588ab1a4311e3fecf4c748aaeb1cb421c Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Wed, 31 Jan 2024 16:49:09 +0100 Subject: [PATCH 7/9] =?UTF-8?q?=F0=9F=93=9D=20chore:=20Add=20deployment=20?= =?UTF-8?q?guide=20(#1093)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEPLOYMENT.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 DEPLOYMENT.md diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md new file mode 100644 index 000000000..f57e91fbe --- /dev/null +++ b/DEPLOYMENT.md @@ -0,0 +1,39 @@ +# Deployment Guide + +## Materials worth reading + +- https://github.com/changesets/changesets/blob/main/docs/intro-to-using-changesets.md +- https://github.com/changesets/changesets/blob/main/docs/prereleases.md + +## How to deploy + +⚠️ Remember to run all the commands from the root directory of the repository! + +1. Run the following command to select the package to be released: + +```bash +pnpm changeset +``` + +2. Consume the changeset by running: + +```bash +pnpm changeset version +``` + +3. Verify all the `package.json` and `CHANGELOG.md` files that were changed by the previous command. + +4. Publish the packages by running: + +```bash +# You might have to run this command twice if it fails to publish the `@synthetixio/synpress` package on the first run. +pnpm changeset publish +``` + +## Tags + +If you're running in prerelease mode, make sure you're also pushing the release tags to GitHub with: + +```bash +git push --follow-tags +``` From 1bca0b0e92edc195de551ce29940d5046916d358 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Wed, 31 Jan 2024 23:28:13 +0100 Subject: [PATCH 8/9] =?UTF-8?q?=F0=9F=94=96=20chore:=20Release=20`alpha.0`?= =?UTF-8?q?=20version=20(#1092)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/fresh-walls-nail.md | 9 +++++++++ .changeset/pre.json | 14 ++++++++++++++ packages/core/CHANGELOG.md | 7 +++++++ packages/core/package.json | 4 ++-- packages/fixtures/CHANGELOG.md | 7 +++++++ packages/fixtures/package.json | 6 +++--- packages/tsconfig/CHANGELOG.md | 7 +++++++ packages/tsconfig/package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- release/CHANGELOG.md | 7 +++++++ release/package.json | 10 +++++----- wallets/metamask/CHANGELOG.md | 7 +++++++ wallets/metamask/package.json | 8 ++++---- 13 files changed, 83 insertions(+), 25 deletions(-) create mode 100644 .changeset/fresh-walls-nail.md create mode 100644 .changeset/pre.json create mode 100644 packages/core/CHANGELOG.md create mode 100644 packages/fixtures/CHANGELOG.md create mode 100644 packages/tsconfig/CHANGELOG.md create mode 100644 release/CHANGELOG.md create mode 100644 wallets/metamask/CHANGELOG.md diff --git a/.changeset/fresh-walls-nail.md b/.changeset/fresh-walls-nail.md new file mode 100644 index 000000000..0324417f0 --- /dev/null +++ b/.changeset/fresh-walls-nail.md @@ -0,0 +1,9 @@ +--- +"@synthetixio/synpress": major +"@synthetixio/synpress-core": patch +"@synthetixio/synpress-fixtures": patch +"@synthetixio/synpress-tsconfig": patch +"@synthetixio/synpress-metamask": patch +--- + +Initial Alpha Release diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 000000000..9d1022277 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,14 @@ +{ + "mode": "pre", + "tag": "alpha", + "initialVersions": { + "docs": "0.0.0", + "example-new-dawn": "0.0.0", + "@synthetixio/synpress-core": "0.0.0", + "@synthetixio/synpress-fixtures": "0.0.0", + "@synthetixio/synpress-tsconfig": "0.0.0", + "@synthetixio/synpress": "3.0.0", + "@synthetixio/synpress-metamask": "0.0.0" + }, + "changesets": ["fresh-walls-nail"] +} diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md new file mode 100644 index 000000000..345046110 --- /dev/null +++ b/packages/core/CHANGELOG.md @@ -0,0 +1,7 @@ +# @synthetixio/synpress-core + +## 0.0.1-alpha.0 + +### Patch Changes + +- Initial Alpha Release diff --git a/packages/core/package.json b/packages/core/package.json index 105e971b8..c0bb41bda 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@synthetixio/synpress-core", - "version": "0.0.0", + "version": "0.0.1-alpha.0", "type": "module", "exports": { "types": "./types/index.d.ts", @@ -42,7 +42,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "@synthetixio/synpress-tsconfig": "workspace:*", + "@synthetixio/synpress-tsconfig": "0.0.1-alpha.0", "@types/archiver": "^5.3.3", "@types/fs-extra": "^11.0.2", "@types/gradient-string": "^1.1.4", diff --git a/packages/fixtures/CHANGELOG.md b/packages/fixtures/CHANGELOG.md new file mode 100644 index 000000000..2fd213653 --- /dev/null +++ b/packages/fixtures/CHANGELOG.md @@ -0,0 +1,7 @@ +# @synthetixio/synpress-fixtures + +## 0.0.1-alpha.0 + +### Patch Changes + +- Initial Alpha Release diff --git a/packages/fixtures/package.json b/packages/fixtures/package.json index 365d7bfa8..5a9a4d702 100644 --- a/packages/fixtures/package.json +++ b/packages/fixtures/package.json @@ -1,6 +1,6 @@ { "name": "@synthetixio/synpress-fixtures", - "version": "0.0.0", + "version": "0.0.1-alpha.0", "type": "module", "exports": { "types": "./types/index.d.ts", @@ -25,13 +25,13 @@ "types:check": "tsc --noEmit" }, "dependencies": { - "@synthetixio/synpress-core": "workspace:*", + "@synthetixio/synpress-core": "0.0.1-alpha.0", "@viem/anvil": "^0.0.6", "fs-extra": "^11.1.1", "zod": "^3.22.4" }, "devDependencies": { - "@synthetixio/synpress-tsconfig": "workspace:*", + "@synthetixio/synpress-tsconfig": "0.0.1-alpha.0", "@types/fs-extra": "^11.0.2", "@types/node": "^20.8.0", "rimraf": "^5.0.1", diff --git a/packages/tsconfig/CHANGELOG.md b/packages/tsconfig/CHANGELOG.md new file mode 100644 index 000000000..747e3b622 --- /dev/null +++ b/packages/tsconfig/CHANGELOG.md @@ -0,0 +1,7 @@ +# @synthetixio/synpress-tsconfig + +## 0.0.1-alpha.0 + +### Patch Changes + +- Initial Alpha Release diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 32b798b2b..a7f8ac82a 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,6 +1,6 @@ { "name": "@synthetixio/synpress-tsconfig", - "version": "0.0.0", + "version": "0.0.1-alpha.0", "type": "module", "files": [ "base.json" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 561321e64..05a156006 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,7 +122,7 @@ importers: version: 3.22.4 devDependencies: '@synthetixio/synpress-tsconfig': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../tsconfig '@types/archiver': specifier: ^5.3.3 @@ -170,7 +170,7 @@ importers: specifier: ^1.41.1 version: 1.41.1 '@synthetixio/synpress-core': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../core '@viem/anvil': specifier: ^0.0.6 @@ -183,7 +183,7 @@ importers: version: 3.22.4 devDependencies: '@synthetixio/synpress-tsconfig': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../tsconfig '@types/fs-extra': specifier: ^11.0.2 @@ -209,17 +209,17 @@ importers: specifier: ^1.41.1 version: 1.41.1 '@synthetixio/synpress-core': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../packages/core '@synthetixio/synpress-fixtures': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../packages/fixtures '@synthetixio/synpress-metamask': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../wallets/metamask devDependencies: '@synthetixio/synpress-tsconfig': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../packages/tsconfig '@types/node': specifier: ^20.8.0 @@ -240,17 +240,17 @@ importers: specifier: ^1.41.1 version: 1.41.1 '@synthetixio/synpress-core': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../../packages/core '@synthetixio/synpress-fixtures': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../../packages/fixtures zod: specifier: ^3.22.4 version: 3.22.4 devDependencies: '@synthetixio/synpress-tsconfig': - specifier: workspace:* + specifier: 0.0.1-alpha.0 version: link:../../packages/tsconfig '@types/node': specifier: ^20.8.0 diff --git a/release/CHANGELOG.md b/release/CHANGELOG.md new file mode 100644 index 000000000..9d5206a22 --- /dev/null +++ b/release/CHANGELOG.md @@ -0,0 +1,7 @@ +# @synthetixio/synpress + +## 4.0.0-alpha.0 + +### Major Changes + +- Initial Alpha Release diff --git a/release/package.json b/release/package.json index fc7218c1d..46ff1e3c1 100644 --- a/release/package.json +++ b/release/package.json @@ -1,6 +1,6 @@ { "name": "@synthetixio/synpress", - "version": "3.0.0", + "version": "4.0.0-alpha.0", "type": "module", "exports": { "types": "./types/index.d.ts", @@ -26,12 +26,12 @@ "types:check": "tsc --noEmit" }, "dependencies": { - "@synthetixio/synpress-core": "workspace:*", - "@synthetixio/synpress-fixtures": "workspace:*", - "@synthetixio/synpress-metamask": "workspace:*" + "@synthetixio/synpress-core": "0.0.1-alpha.0", + "@synthetixio/synpress-fixtures": "0.0.1-alpha.0", + "@synthetixio/synpress-metamask": "0.0.1-alpha.0" }, "devDependencies": { - "@synthetixio/synpress-tsconfig": "workspace:*", + "@synthetixio/synpress-tsconfig": "0.0.1-alpha.0", "@types/node": "^20.8.0", "rimraf": "^5.0.1", "tsup": "^7.2.0", diff --git a/wallets/metamask/CHANGELOG.md b/wallets/metamask/CHANGELOG.md new file mode 100644 index 000000000..6f1527340 --- /dev/null +++ b/wallets/metamask/CHANGELOG.md @@ -0,0 +1,7 @@ +# @synthetixio/synpress-metamask + +## 0.0.1-alpha.0 + +### Patch Changes + +- Initial Alpha Release diff --git a/wallets/metamask/package.json b/wallets/metamask/package.json index 47e331f24..443d2fcde 100644 --- a/wallets/metamask/package.json +++ b/wallets/metamask/package.json @@ -1,6 +1,6 @@ { "name": "@synthetixio/synpress-metamask", - "version": "0.0.0", + "version": "0.0.1-alpha.0", "type": "module", "exports": { "types": "./types/index.d.ts", @@ -30,12 +30,12 @@ "types:check": "tsc --noEmit" }, "dependencies": { - "@synthetixio/synpress-core": "workspace:*", - "@synthetixio/synpress-fixtures": "workspace:*", + "@synthetixio/synpress-core": "0.0.1-alpha.0", + "@synthetixio/synpress-fixtures": "0.0.1-alpha.0", "zod": "^3.22.4" }, "devDependencies": { - "@synthetixio/synpress-tsconfig": "workspace:*", + "@synthetixio/synpress-tsconfig": "0.0.1-alpha.0", "@types/node": "^20.8.0", "@vitest/coverage-v8": "1.0.0-beta.0", "rimraf": "^5.0.1", From eacf895813bc0f6b9a44d3621a084ad6934d6050 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Thu, 1 Feb 2024 00:04:12 +0100 Subject: [PATCH 9/9] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20chore(example):=20Upda?= =?UTF-8?q?te=20Synpress=20to=20latest=20version=20(#1094)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/new-dawn/package.json | 4 +- .../new-dawn/test/e2e/03_advanced.spec.ts | 2 +- pnpm-lock.yaml | 77 +++++++------------ 3 files changed, 30 insertions(+), 53 deletions(-) diff --git a/examples/new-dawn/package.json b/examples/new-dawn/package.json index e03e28558..acf989e55 100644 --- a/examples/new-dawn/package.json +++ b/examples/new-dawn/package.json @@ -13,8 +13,8 @@ "test:e2e:headless:ui": "HEADLESS=true playwright test --ui" }, "dependencies": { - "@playwright/test": "1.40.0", - "@synthetixio/synpress": "0.0.0-devtest-20231206214259", + "@playwright/test": "1.41.1", + "@synthetixio/synpress": "4.0.0-alpha.0", "dotenv": "16.3.1" }, "devDependencies": { diff --git a/examples/new-dawn/test/e2e/03_advanced.spec.ts b/examples/new-dawn/test/e2e/03_advanced.spec.ts index 6affb6d2e..3641b9293 100644 --- a/examples/new-dawn/test/e2e/03_advanced.spec.ts +++ b/examples/new-dawn/test/e2e/03_advanced.spec.ts @@ -14,7 +14,7 @@ describe('Token', () => { await deployToken() await page.locator('#approveTokens').click() - await metamask.approvePermission() + await metamask.approveTokenPermission() }) }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 05a156006..93458a7bc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,11 +60,11 @@ importers: examples/new-dawn: dependencies: '@playwright/test': - specifier: 1.40.0 - version: 1.40.0 + specifier: 1.41.1 + version: 1.41.1 '@synthetixio/synpress': - specifier: 0.0.0-devtest-20231206214259 - version: 0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2) + specifier: 4.0.0-alpha.0 + version: 4.0.0-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2) dotenv: specifier: 16.3.1 version: 16.3.1 @@ -1287,14 +1287,6 @@ packages: requiresBuild: true optional: true - /@playwright/test@1.40.0: - resolution: {integrity: sha512-PdW+kn4eV99iP5gxWNSDQCbhMaDVej+RXL5xr6t04nbKLCBwYtA046t7ofoczHOm8u6c+45hpDKQVZqtqwkeQg==} - engines: {node: '>=16'} - hasBin: true - dependencies: - playwright: 1.40.0 - dev: false - /@playwright/test@1.41.1: resolution: {integrity: sha512-9g8EWTjiQ9yFBXc6HjCWe41msLpxEX0KhmfmPl9RPLJdfzL4F0lg2BdJ91O9azFdl11y1pmpwdjBiSxvqc+btw==} engines: {node: '>=16'} @@ -1411,11 +1403,11 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@synthetixio/synpress-core@0.0.0-devtest-20231206214259(playwright-core@1.40.0)(typescript@5.3.2): - resolution: {integrity: sha512-QVn0R7l6o2PBF9KOEJZ39SQtcQNd0UXPDdICcO1nIIeJjVIFWAX0J151ovBkaL/pB1X5ydqsoQjdOniutn1t+Q==} + /@synthetixio/synpress-core@0.0.1-alpha.0(playwright-core@1.41.1)(typescript@5.3.2): + resolution: {integrity: sha512-r8mJSt3B90aLJqnXXFSfpjv1ucOfrZ9Q8iRdAuKtxHwrc/C7r7LfwiuxED/c2/rOjelZXntlLtKrbQs+Q5C8nw==} hasBin: true peerDependencies: - playwright-core: 1.40.0 + playwright-core: ^1.41.1 dependencies: axios: 1.5.0 chalk: 5.3.0 @@ -1424,7 +1416,8 @@ packages: fs-extra: 11.1.1 glob: 10.3.10 gradient-string: 2.0.2 - playwright-core: 1.40.0 + playwright-core: 1.41.1 + progress: 2.0.3 tsup: 7.2.0(typescript@5.3.2) unzipper: 0.10.14 zod: 3.22.4 @@ -1437,13 +1430,13 @@ packages: - typescript dev: false - /@synthetixio/synpress-fixtures@0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2): - resolution: {integrity: sha512-PyLRLwXDcr1HbOd4e7hcetPjbpj48SbZiJGjw4mjj9luRMdjcgkbwXesNQkEtAjZiwSmYjVyCfur1mWUsbC62w==} + /@synthetixio/synpress-fixtures@0.0.1-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2): + resolution: {integrity: sha512-vRO2nPbN585s0d6sO1ekxQLwyp7r5JJN7Nu7Eya/KTZ2nEApbCSd8hmTyAepkUCl771GhcSD+ITyqPA78OYf/A==} peerDependencies: - '@playwright/test': 1.40.0 + '@playwright/test': ^1.41.1 dependencies: - '@playwright/test': 1.40.0 - '@synthetixio/synpress-core': 0.0.0-devtest-20231206214259(playwright-core@1.40.0)(typescript@5.3.2) + '@playwright/test': 1.41.1 + '@synthetixio/synpress-core': 0.0.1-alpha.0(playwright-core@1.41.1)(typescript@5.3.2) '@viem/anvil': 0.0.6 fs-extra: 11.1.1 zod: 3.22.4 @@ -1459,14 +1452,14 @@ packages: - utf-8-validate dev: false - /@synthetixio/synpress-metamask@0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2): - resolution: {integrity: sha512-ltEGW51ksVOvvubAzLDFQVbDE1pJzhD4k4GF8EX91MFqN45PJfElqX2AStJkGvaqgF7oRJr9CT0wAVBHfzOnvw==} + /@synthetixio/synpress-metamask@0.0.1-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2): + resolution: {integrity: sha512-gdTeb5K5v0rCpzxm4A3LSu7K/Qst8RDrnsV0RPIBRkSnL6wOIkx3Nyj/DNKSKt3WSrtMeFICscCcJVJbrZWD3A==} peerDependencies: - '@playwright/test': 1.40.0 + '@playwright/test': ^1.41.1 dependencies: - '@playwright/test': 1.40.0 - '@synthetixio/synpress-core': 0.0.0-devtest-20231206214259(playwright-core@1.40.0)(typescript@5.3.2) - '@synthetixio/synpress-fixtures': 0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2) + '@playwright/test': 1.41.1 + '@synthetixio/synpress-core': 0.0.1-alpha.0(playwright-core@1.41.1)(typescript@5.3.2) + '@synthetixio/synpress-fixtures': 0.0.1-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2) zod: 3.22.4 transitivePeerDependencies: - '@swc/core' @@ -1480,16 +1473,16 @@ packages: - utf-8-validate dev: false - /@synthetixio/synpress@0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2): - resolution: {integrity: sha512-WKTVDPpXDNU8Y/cF0y6T4ePNFU93VShsJ8ITzAlFK+ULAagwJNJaYZ/Ww0RoFEwPVQIW2EQhPA/uz44C8WuUbg==} + /@synthetixio/synpress@4.0.0-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2): + resolution: {integrity: sha512-wgMVMjNIlJVB/4rqcH5iiFotxTFJpVwbGIjrtmxVo0iiXo9GgSP5DRtImCMrLOfchJN+7G2J7lblnYUe1ajPrw==} hasBin: true peerDependencies: - '@playwright/test': 1.40.0 + '@playwright/test': ^1.41.1 dependencies: - '@playwright/test': 1.40.0 - '@synthetixio/synpress-core': 0.0.0-devtest-20231206214259(playwright-core@1.40.0)(typescript@5.3.2) - '@synthetixio/synpress-fixtures': 0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2) - '@synthetixio/synpress-metamask': 0.0.0-devtest-20231206214259(@playwright/test@1.40.0)(playwright-core@1.40.0)(typescript@5.3.2) + '@playwright/test': 1.41.1 + '@synthetixio/synpress-core': 0.0.1-alpha.0(playwright-core@1.41.1)(typescript@5.3.2) + '@synthetixio/synpress-fixtures': 0.0.1-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2) + '@synthetixio/synpress-metamask': 0.0.1-alpha.0(@playwright/test@1.41.1)(playwright-core@1.41.1)(typescript@5.3.2) transitivePeerDependencies: - '@swc/core' - bufferutil @@ -4357,28 +4350,12 @@ packages: pathe: 1.1.1 dev: true - /playwright-core@1.40.0: - resolution: {integrity: sha512-fvKewVJpGeca8t0ipM56jkVSU6Eo0RmFvQ/MaCQNDYm+sdvKkMBBWTE1FdeMqIdumRaXXjZChWHvIzCGM/tA/Q==} - engines: {node: '>=16'} - hasBin: true - dev: false - /playwright-core@1.41.1: resolution: {integrity: sha512-/KPO5DzXSMlxSX77wy+HihKGOunh3hqndhqeo/nMxfigiKzogn8kfL0ZBDu0L1RKgan5XHCPmn6zXd2NUJgjhg==} engines: {node: '>=16'} hasBin: true dev: false - /playwright@1.40.0: - resolution: {integrity: sha512-gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==} - engines: {node: '>=16'} - hasBin: true - dependencies: - playwright-core: 1.40.0 - optionalDependencies: - fsevents: 2.3.2 - dev: false - /playwright@1.41.1: resolution: {integrity: sha512-gdZAWG97oUnbBdRL3GuBvX3nDDmUOuqzV/D24dytqlKt+eI5KbwusluZRGljx1YoJKZ2NRPaeWiFTeGZO7SosQ==} engines: {node: '>=16'}