-
Notifications
You must be signed in to change notification settings - Fork 69
iOS uitests added #2157
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
Open
vinotestlio
wants to merge
77
commits into
bitpay:develop
Choose a base branch
from
vinotestlio:testlio/ui-tests
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
iOS uitests added #2157
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
f5d9c01
Fix: use the adjusted min for swap pills
Gamboster 64fda60
Fix: use touchable and min size on bottom notif actions
Gamboster 14c3a49
SendTo: Fix - Email validation regex causing stack overflow
cmgustavo 7e6af6d
fix: prevent unhandled rejected dangling otp toggle promise
msalcala11 a52d084
Merge pull request #2118 from cmgustavo/bug/regex-valid-email-01
JohnathanWhite 8b8e236
Merge pull request #2119 from msalcala11/fix-invalid-code-crash
JohnathanWhite f78ae72
Merge pull request #2107 from Gamboster/fix/swapPillMinLimit
JohnathanWhite 3b35196
added build phase
JohnathanWhite 7cb3292
bump 14.41.0
JohnathanWhite 886b0e9
Create/Import: Enhancement - reduce duplicate wallet creation during …
cmgustavo 6b01d9d
KeySettings: Fix - remove old LogAction by logManager
cmgustavo 9363e6e
Exclude mocks folder to tsconfig
cmgustavo 0982dcc
Validate: Fix - general fixes for validate script (#10)
gabrielbazan7 9fcb6d6
AppsFlyer: Chore - Upgrade react-native-appsflyer
cmgustavo a7fd279
Support deferred nonce EVM txps by assigning fresh nonce before signing
leolambo 91dbf03
Use prepareTx and handle null nonce for EVM txps
leolambo 9403fc7
Extend deferred nonce support to XRP
leolambo 40eb99a
Update nonce txp filter logic
leolambo 4904d65
updated testIDs and accessibility labels
JohnathanWhite 30ea6a6
TSS: Enhancement - wording improvements
gabrielbazan7 0c8a643
TSS: Enhancement - show actions list information ( needs support from…
gabrielbazan7 858bfb6
TSS: Enhancement - remove tss txps automatically after 10 minutes
gabrielbazan7 e826288
TSS: Enhancement - readonly support for tss
gabrielbazan7 2e23adf
TSS: Enhancement - clear encrypt pass support for tss
gabrielbazan7 a508528
TSS: Fix - decode the URI before passing it to RNFS.readfile
gabrielbazan7 bc4f2ba
TSS: Enhancement - readonly support for tss 2
gabrielbazan7 61dce3c
TSS: Enhancement - add 'how to find Session ID' info text
gabrielbazan7 ae53946
TSS: Enhancement - improve needsBackup handling
gabrielbazan7 b61d712
prettier
gabrielbazan7 c7ce5ef
TSS: Enhancement - use temporary directory for keyshare file and dele…
gabrielbazan7 e17dd7e
E2E: Fix - move misplaced accessibilityLabel from JSX children to props
gabrielbazan7 89fe173
Fix: send payment_method prop for banxa CreateOrder
Gamboster e22b74f
bump 14.41.1
JohnathanWhite 1fbd9f0
Merge pull request #2150 from JohnathanWhite/release/14.41.1
JohnathanWhite 5df59da
uitests pages and tests added
vinotestlio 0538771
master branch updated
vinotestlio 656b12f
pull request codn added
vinotestlio 53d165b
Merge branch 'develop' of https://github.com/bitpay/bitpay-app into t…
vinotestlio 8c91850
master src merge
vinotestlio d0165d7
uitests folder renamed
vinotestlio 51962ba
test plan added
vinotestlio db82530
objectVersion udpated
vinotestlio dca0289
recovery phrase removed
vinotestlio 28ba40e
groups removed
vinotestlio 715a4d1
pages and tests fixes
vinotestlio 02035d1
test without building removed
vinotestlio 4a1c009
Merge branch 'develop' of https://github.com/bitpay/bitpay-app into t…
vinotestlio 28c4e11
uitests branch added
vinotestlio d27faf0
Release build added
vinotestlio e9a96fa
bitpayuitests added
vinotestlio 3c603d7
flows added
vinotestlio 806b9eb
added test without building
vinotestlio c0efcdf
tests added
vinotestlio c779db0
test without building removed
vinotestlio 5d497c7
added system env prod
vinotestlio 9fcfed8
Merge branch 'develop' of https://github.com/bitpay/bitpay-app into t…
vinotestlio 6541043
file class names updated
vinotestlio 9008cf8
test files and names updated
vinotestlio 3835bc8
added tests in sequential
vinotestlio 1dd6b53
updated tapAddCryptoButton
vinotestlio cdf57fe
time interval updated
vinotestlio 497fc02
timeout increased
vinotestlio 7a09c37
time increased to 15mins
vinotestlio 775ccb6
tap send button update
vinotestlio 9181ed4
page source attached
vinotestlio 5806385
send button locator update
vinotestlio 6012dfd
home page locator updates
vinotestlio b68aacf
updated Bitcoin locator
vinotestlio aac5830
tap bitcoin updated
vinotestlio 9741d87
swap test updated
vinotestlio a36cd6d
Merge branch 'develop' of https://github.com/bitpay/bitpay-app into t…
vinotestlio ca113a3
swap test added
vinotestlio 807b670
swap test min amount
vinotestlio 68c79d2
tap on center of screen
vinotestlio b92fdf4
step-13 tap continue update
vinotestlio dfbe610
swap and buy functions updated
vinotestlio d0dbb35
swap page pbxproj
vinotestlio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,215 @@ | ||
| name: iOS XCUITest | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: [master, develop, testlio/ui-tests] | ||
| pull_request: | ||
| branches: [master, develop, testlio/ui-tests] | ||
|
|
||
| jobs: | ||
| ios-ui-tests: | ||
| runs-on: macos-latest | ||
| timeout-minutes: 180 | ||
|
|
||
| steps: | ||
| # Checkout Repo | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| # Select Xcode | ||
| - name: Select Xcode 26.0.1 | ||
| run: sudo xcode-select -switch /Applications/Xcode_26.0.1.app | ||
|
|
||
| # Setup Node | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: yarn | ||
|
|
||
| # Install JS dependencies | ||
| - name: Install JS dependencies | ||
| run: yarn install --frozen-lockfile | ||
|
|
||
| # Setup Ruby | ||
| - name: Setup Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: .ruby-version | ||
| bundler-cache: false | ||
|
|
||
| # Install Gems | ||
| - name: Install Gems | ||
| run: | | ||
| bundle config set deployment false | ||
| bundle install | ||
|
|
||
| # Disable Sentry upload | ||
| - name: Disable Sentry upload | ||
| run: | | ||
| echo "SENTRY_DISABLE_AUTO_UPLOAD=true" >> $GITHUB_ENV | ||
|
|
||
| # Install Pods | ||
| - name: Install Pods | ||
| run: | | ||
| cd ios | ||
| bundle exec pod install | ||
|
|
||
| # Generate React Native Bundle | ||
| - name: Generate React Native Bundle | ||
| run: | | ||
| npx react-native bundle \ | ||
| --entry-file index.js \ | ||
| --platform ios \ | ||
| --dev false \ | ||
| --bundle-output ios/main.jsbundle \ | ||
| --assets-dest ios | ||
|
|
||
| # Boot Simulator | ||
| - name: Boot Simulator | ||
| run: | | ||
| xcrun simctl boot "iPhone 17" || true | ||
| xcrun simctl bootstatus "iPhone 17" -b | ||
|
|
||
| # Apply production configuration | ||
| - name: Apply production configuration | ||
| run: | | ||
| export NODE_ENV=production | ||
| yarn set:prod | ||
|
|
||
| # Build for testing | ||
| - name: Build for testing | ||
| run: | | ||
| set -o pipefail | ||
| xcodebuild \ | ||
| -workspace ios/BitPayApp.xcworkspace \ | ||
| -scheme BitPayApp \ | ||
| -configuration Release \ | ||
| -destination 'platform=iOS Simulator,name=iPhone 17' \ | ||
| -derivedDataPath Build \ | ||
| -only-testing:BitPayAppUITests \ | ||
| build-for-testing | ||
|
|
||
| # Run XCUITest | ||
| # - name: Run XCUITest | ||
| # run: | | ||
| # set -o pipefail | ||
| # xcodebuild \ | ||
| # -workspace ios/BitPayApp.xcworkspace \ | ||
| # -scheme BitPayApp \ | ||
| # -configuration Release \ | ||
| # -destination 'platform=iOS Simulator,name=iPhone 17' \ | ||
| # -derivedDataPath Build \ | ||
| # -resultBundlePath TestResults.xcresult \ | ||
| # -parallel-testing-enabled NO \ | ||
| # -only-testing:BitPayAppUITests \ | ||
| # test | ||
|
|
||
| - name: Run XCUITest in order | ||
| run: | | ||
| set -e | ||
| set -o pipefail | ||
|
|
||
| rm -rf TestResults.xcresult | ||
|
|
||
| xcodebuild \ | ||
| -workspace ios/BitPayApp.xcworkspace \ | ||
| -scheme BitPayApp \ | ||
| -configuration Release \ | ||
| -destination 'platform=iOS Simulator,name=iPhone 17' \ | ||
| -derivedDataPath Build \ | ||
| -resultBundlePath TestResults.xcresult \ | ||
| -parallel-testing-enabled NO \ | ||
| -only-testing:BitPayAppUITests/Test591_OnboardingCreateWallet \ | ||
| -only-testing:BitPayAppUITests/Test592_ImportWalletRecoveryPhrase \ | ||
| -only-testing:BitPayAppUITests/Test593_BTCConfirmPaymentScreen \ | ||
| -only-testing:BitPayAppUITests/Test594_BasicSwapBTC \ | ||
| -only-testing:BitPayAppUITests/Test595_BasicSellBTC \ | ||
| -only-testing:BitPayAppUITests/Test596_BasicBuyBTC \ | ||
| test | ||
|
|
||
| # Upload XCResult | ||
| - name: Upload XCUITest Results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: xcuitest-results | ||
| path: TestResults.xcresult | ||
|
|
||
| # Install Allure CLI | ||
| - name: Install Allure CLI | ||
| if: always() | ||
| run: brew install allure || true | ||
|
|
||
| # Install allure-xcresult | ||
| - name: Install allure-xcresult | ||
| if: always() | ||
| run: | | ||
| if ! command -v allure-xcresult &> /dev/null; then | ||
| curl -L -o allure-xcresult https://github.com/kvld/allure-xcresult/releases/download/v1.5.0/allure-xcresult | ||
| chmod +x allure-xcresult | ||
| sudo mv allure-xcresult /usr/local/bin/ | ||
| fi | ||
|
|
||
| # Convert to Allure | ||
| - name: Convert XCResult to Allure Results | ||
| if: always() | ||
| run: | | ||
| allure-xcresult \ | ||
| --input TestResults.xcresult \ | ||
| --output allure-results | ||
|
|
||
| # Zip Allure | ||
| - name: Zip Allure Results | ||
| if: always() | ||
| run: | | ||
| zip -r allure-results.zip allure-results | ||
|
|
||
| # Upload Allure Results | ||
| - name: Upload Allure Results Artifact | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: allure-results | ||
| path: allure-results.zip | ||
|
|
||
| # Generate HTML | ||
| - name: Generate Allure HTML Report | ||
| if: always() | ||
| run: | | ||
| allure generate allure-results --clean -o allure-report | ||
|
|
||
| # Upload HTML | ||
| - name: Upload Allure HTML Report | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: allure-html-report | ||
| path: allure-report | ||
|
|
||
| # Install Testlio CLI | ||
| - name: Install Testlio CLI | ||
| if: always() | ||
| run: npm install -g @testlio/cli | ||
|
|
||
| # Upload to Testlio | ||
| - name: Upload Results to Testlio | ||
| if: always() | ||
| run: | | ||
| export RUN_API_TOKEN="${{ secrets.TESTLIO_RUN_TOKEN }}" | ||
|
|
||
| testlio create-run \ | ||
| --testConfig testlio-cli/test-config.json \ | ||
| --projectConfig testlio-cli/project-config.json \ | ||
| --externalResults true \ | ||
| --resultProvider local \ | ||
| --automatedDeviceIds 363a5ce7-6cef-436c-8531-6c07195c8fe8 | ||
|
|
||
| testlio parse-run-results \ | ||
| --projectConfig testlio-cli/project-config.json \ | ||
| --path allure-results.zip \ | ||
| --automatedDeviceId 363a5ce7-6cef-436c-8531-6c07195c8fe8 | ||
|
|
||
| testlio finalize-results \ | ||
| --projectConfig testlio-cli/project-config.json | ||
This file contains hidden or 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 +1,5 @@ | ||
| # tests | ||
|
|
||
| # BitPay App v2 | ||
| Welcome to BitPay App v2! | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.