Skip to content

Commit

Permalink
test: revert test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jake4take committed Jan 14, 2025
1 parent 935eeda commit a4b0aa9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/wallets/src/ctrl/ctrl.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ export class CtrlPage implements WalletPage {
/** Navigate to home page of OXK Wallet extension:
* - open the wallet extension
* - unlock extension (if needed)
* - cancel awaited transactions (if needed)
*/
async navigate() {
await test.step('Navigate to Ctrl', async () => {
await this.initLocators();
await this.goto();
await this.loginPage.unlock();
// await this.walletOperations.cancelAllTxInQueue();
});
}

Expand Down
2 changes: 1 addition & 1 deletion wallets-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start:prod": "node dist/main",
"test": "playwright test -c ./dist",
"test:smoke": "playwright test -c ./dist smoke",
"test:widgets": "playwright test --repeat-each=10 -c ./dist widgets"
"test:widgets": "playwright test -c ./dist widgets"
},
"dependencies": {
"@lidofinance/wallets-testing-extensions": "*",
Expand Down
2 changes: 1 addition & 1 deletion wallets-testing/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const config: PlaywrightTestConfig = {
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: false, //todo revert
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
Expand Down
3 changes: 1 addition & 2 deletions wallets-testing/test/widgets/ethereum.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ test.describe('Ethereum', () => {
await browserService.connectWallet();
});

// todo remove .only
test.only(`Ctrl connect`, async () => {
test(`Ctrl connect`, async () => {
await browserService.setup(CTRL_COMMON_CONFIG, ETHEREUM_WIDGET_CONFIG);
await browserService.connectWallet();
});
Expand Down

0 comments on commit a4b0aa9

Please sign in to comment.