Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add testId hooks for E2E tests #2411

Merged
merged 2 commits into from
Dec 27, 2024
Merged

test: add testId hooks for E2E tests #2411

merged 2 commits into from
Dec 27, 2024

Conversation

catch-21
Copy link
Contributor

Description

Please include a summary of changes and which issues are fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Linked Issues/Tasks

Add any links to GitHub issues or Asana tasks that are relevant to this pull request.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (improving code without creating new functionality)

Tests

  • Detox test
  • Unit test
  • No test

Screenshot / Video

Insert relevant screenshot / recording

QA Notes

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce during the Bitkit testing session. You can also leave a video of the PR in action.

@catch-21 catch-21 changed the title test: add testId hoocks for E2E tests test: add testId hooks for E2E tests Dec 23, 2024
@catch-21 catch-21 force-pushed the catch-21/testIds branch 2 times, most recently from 3de36cc to 0027520 Compare December 23, 2024 06:52
@catch-21 catch-21 marked this pull request as ready for review December 23, 2024 12:06
@catch-21 catch-21 requested a review from pwltr December 23, 2024 12:06
@@ -119,6 +119,7 @@ const ReceiveAmount = ({
{t('minimum')}
</Caption13Up>
<Money
testID="Minimum"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me although these IDs should be unique across the app so maybe better to prefix with screen name "ReceiveAmountMinimum"

@@ -172,7 +175,7 @@ const ReceiveConnect = ({
<GradientView style={styles.container}>
<BottomSheetNavigationHeader title={t('receive_bitcoin')} />
<View style={styles.content}>
<AmountToggle amount={amount} />
<AmountToggle testID="Review" amount={amount} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<AmountToggle testID="Review" amount={amount} />
<AmountToggle testID="ReceiveReviewAmount" amount={amount} />

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, but I'm going with ReceiveConnectAmount

@catch-21 catch-21 merged commit 328b8f1 into master Dec 27, 2024
7 checks passed
@catch-21 catch-21 deleted the catch-21/testIds branch December 27, 2024 20:27
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