-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗️ chore: Parallel exports for Playwright & Cypress (#1149)
* 🏗️ chore: Parallel exports for Playwright & Cypress * fix: cleanup
- Loading branch information
Showing
20 changed files
with
45 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
examples/new-dawn/test/e2e/00_mock.spec.ts → .../new-dawn/test/playwright/00_mock.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
examples/new-dawn/test/e2e/01_basic.spec.ts → ...new-dawn/test/playwright/01_basic.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/new-dawn/test/e2e/02_simple.spec.ts → ...ew-dawn/test/playwright/02_simple.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import synpress from '../synpress' | ||
import synpress from './synpress' | ||
|
||
const test = synpress | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...les/new-dawn/test/e2e/03_advanced.spec.ts → ...-dawn/test/playwright/03_advanced.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/new-dawn/test/advancedFixtures.ts → ...-dawn/test/playwright/advancedFixtures.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
examples/new-dawn/test/synpress.ts → ...ples/new-dawn/test/playwright/synpress.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { metaMaskFixtures, testWithSynpress } from '@synthetixio/synpress' | ||
import { testWithSynpress } from '@synthetixio/synpress' | ||
import { metaMaskFixtures } from '@synthetixio/synpress/playwright' | ||
import connectedSetup from './wallet-setup/connected.setup' | ||
|
||
export default testWithSynpress(metaMaskFixtures(connectedSetup)) |
3 changes: 2 additions & 1 deletion
3
...new-dawn/test/wallet-setup/basic.setup.ts → ...st/playwright/wallet-setup/basic.setup.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...dawn/test/wallet-setup/connected.setup.ts → ...laywright/wallet-setup/connected.setup.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from '@synthetixio/ethereum-wallet-mock/cypress' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
import { EthereumWalletMock, ethereumWalletMockFixtures } from '@synthetixio/ethereum-wallet-mock' | ||
import { defineWalletSetup } from '@synthetixio/synpress-cache' | ||
import { testWithSynpress } from '@synthetixio/synpress-core' | ||
import { MetaMask, getExtensionId, metaMaskFixtures } from '@synthetixio/synpress-metamask' | ||
|
||
export { | ||
// Framework fixtures | ||
testWithSynpress, | ||
ethereumWalletMockFixtures, | ||
metaMaskFixtures, | ||
// API | ||
MetaMask, | ||
EthereumWalletMock, | ||
// Helpers | ||
defineWalletSetup, | ||
getExtensionId | ||
defineWalletSetup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from '@synthetixio/ethereum-wallet-mock/playwright' | ||
export { MetaMask, getExtensionId, metaMaskFixtures } from '@synthetixio/synpress-metamask' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
"sourceMap": false, | ||
"declarationMap": true | ||
}, | ||
"include": ["src/index.ts"] | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
export { default as EthereumWalletMock } from './playwright/EthereumWalletMock' | ||
export * from './playwright/utils' | ||
export * from './playwright/fixtures/ethereumWalletMockFixtures' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { default as EthereumWalletMock } from './EthereumWalletMock' | ||
export { default as synpress } from './synpress' | ||
export * from './utils' | ||
export * from './fixtures/ethereumWalletMockFixtures' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { testWithSynpress } from '@synthetixio/synpress-core' | ||
import { ethereumWalletMockFixtures } from '../index' | ||
import { ethereumWalletMockFixtures } from '.' | ||
|
||
export default testWithSynpress(ethereumWalletMockFixtures) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters