Skip to content

Conversation

Vere-Grey
Copy link
Contributor

@Vere-Grey Vere-Grey commented Oct 6, 2025

Description

Related Issue

Resolve

Screenshots:

πŸ”πŸ–₯️ Suite web test results: View in Currents

πŸ”πŸ–₯️ Suite desktop test results: View in Currents

@Vere-Grey Vere-Grey requested review from zako05 and Copilot October 6, 2025 22:33
@Vere-Grey Vere-Grey self-assigned this Oct 6, 2025
@Vere-Grey Vere-Grey requested a review from HajekOndrej as a code owner October 6, 2025 22:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses two issues in end-to-end test suites: fixes a timeout issue in the Cardano passphrase test and adds debugging capabilities for investigating Solana fee validation failures that occur specifically in CI environments.

  • Increased timeout for device connection status check in Cardano passphrase test
  • Added comprehensive debugging for Solana fee validation with Redux state inspection
  • Extracted common Redux state access logic into a reusable helper method

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
swap-coins.test.ts Added debugging information for Solana fee validation failures with detailed error messages
passphrase-cardano.test.ts Increased timeout for device connection status check from default to 15 seconds
enhancePage.ts Extracted Redux state access into reusable getReduxObject method and refactored existing methods to use it

Comment on lines +97 to +101
const debugFeeInfo = JSON.stringify(
await page.getReduxObject('wallet.trading.composedTransactionInfo'),
null,
2,
);
Copy link
Preview

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding error handling around the Redux state access and JSON.stringify operations to prevent test failures if the state is unavailable or contains circular references.

Suggested change
const debugFeeInfo = JSON.stringify(
await page.getReduxObject('wallet.trading.composedTransactionInfo'),
null,
2,
);
let debugFeeInfo: string;
try {
const reduxObj = await page.getReduxObject('wallet.trading.composedTransactionInfo');
debugFeeInfo = JSON.stringify(reduxObj, null, 2);
} catch (err) {
debugFeeInfo = `Could not serialize Redux transaction info: ${err}`;
}

Copilot uses AI. Check for mistakes.

await expect(page.getByTestId('@deviceStatus-connected')).toBeVisible({
timeout: 15_000,
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same performance degradation as we saw in t2t1-recovery-persistence.test.ts test. I have message ready for tech connect channel, I just asked our qa for quick confirmation on real devices.

@Vere-Grey Vere-Grey merged commit 31363b8 into develop Oct 7, 2025
34 of 40 checks passed
@Vere-Grey Vere-Grey deleted the fix-e2e-tests branch October 7, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants