Skip to content

Commit

Permalink
auto sorty
Browse files Browse the repository at this point in the history
  • Loading branch information
Seroxdesign committed Jun 21, 2024
1 parent 138c7a1 commit 850b037
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 202 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { BrowserContext, Page } from '@playwright/test'
import { defineWalletSetup } from '@synthetixio/synpress-utils'
import { MetaMask, getExtensionId } from '@synthetixio/synpress'
import { defineWalletSetup } from '@synthetixio/synpress-utils'

const SEED_PHRASE = process.env.SEED_PHRASE
const PASSWORD = process.env.WALLET_PASSWORD
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
"sort-package-json": "sort-package-json 'package.json' '{packages,wallets,examples}/*/package.json'",
"sort-package-json:check": "sort-package-json 'package.json' '{packages,wallets,examples}/*/package.json' --check",
"test": "turbo test",
"test:e2e:headful": "turbo test:e2e:headful --filter=@synthetixio/synpress-metamask --filter=@synthetixio/ethereum-wallet-mock",
"test:e2e:headful:keplr": "turbo test:e2e:headful --filter=@synthetixio/synpress-keplr",
"test:e2e:headless": "turbo test:e2e:headless --filter=@synthetixio/synpress-metamask --filter=@synthetixio/ethereum-wallet-mock",
"test:e2e:headless:keplr": "turbo test:e2e:headless --filter=@synthetixio/synpress-keplr",
"test:e2e:headful": "turbo test:e2e:headful --filter=@synthetixio/synpress-metamask --filter=@synthetixio/synpress-keplr --filter=@synthetixio/ethereum-wallet-mock",
"test:e2e:headless": "turbo test:e2e:headless --filter=@synthetixio/synpress-metamask --filter=@synthetixio/synpress-keplr --filter=@synthetixio/ethereum-wallet-mock",
"update:deps": "ncu -u -ws --root"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion release/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export {
// Helpers
defineWalletSetup,
getExtensionId
}
}
16 changes: 0 additions & 16 deletions wallets/keplr/cypress.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion wallets/keplr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"test:coverage": "vitest run --coverage",
"test:e2e:headful": "playwright test",
"test:e2e:headless": "HEADLESS=true playwright test",
"test:e2e:headless:cypress": "cypress run --headless --browser chrome",
"test:e2e:headless:ui": "HEADLESS=true playwright test --ui",
"test:watch": "vitest watch",
"types:check": "tsc --noEmit"
Expand Down
3 changes: 0 additions & 3 deletions wallets/keplr/src/cypress/errors.ts

This file was deleted.

1 change: 0 additions & 1 deletion wallets/keplr/src/cypress/index.ts

This file was deleted.

67 changes: 0 additions & 67 deletions wallets/keplr/src/cypress/initKeplrWallet.ts

This file was deleted.

30 changes: 0 additions & 30 deletions wallets/keplr/src/cypress/installSynpress.ts

This file was deleted.

14 changes: 0 additions & 14 deletions wallets/keplr/src/cypress/setupTasks.ts

This file was deleted.

34 changes: 0 additions & 34 deletions wallets/keplr/src/cypress/support/commands.ts

This file was deleted.

21 changes: 0 additions & 21 deletions wallets/keplr/src/cypress/support/e2e.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { notificationPageElements } from '../selectors'

export const acceptAccess = async (page: Page) => {
const extensionId = await getExtensionId(page.context(), 'keplr')
const notificationPage = await getNotificationPageAndWaitForLoad(context, extensionId)
const notificationPage = await getNotificationPageAndWaitForLoad(page.context(), extensionId)
await notificationPage.waitForLoadState('domcontentloaded')
await notificationPage.waitForSelector(notificationPageElements.approveButton)
await notificationPage.click(notificationPageElements.approveButton)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { getExtensionId } from '../../../fixtureActions'

export const rejectAccess = async (page: Page) => {
const extensionId = await getExtensionId(page.context(), 'keplr')
const notificationPage = await getNotificationPageAndWaitForLoad(context, extensionId)
const notificationPage = await getNotificationPageAndWaitForLoad(page.context(), extensionId)
await notificationPage.close()
}
7 changes: 0 additions & 7 deletions wallets/keplr/test/cypress/setupAccount.cy.ts

This file was deleted.

0 comments on commit 850b037

Please sign in to comment.