106 Commits

Author SHA1 Message Date
Tim Man
25bead5c96 chore: update pr template (#859)
* chore: update pr template

* chore: update pull request template after comments

* chore: update PULL_REQUEST_TEMPLATE.md

* chore: update PULL_REQUEST_TEMPLATE.md

---------

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
2025-01-31 11:47:13 +01:00
Duska.T
8821afd607 Dusana/eng 5909 fix for workflow upload playwright report to develop (#811)
* release: v0.46.0

* Fix: Duplicate artifact name causing 409 Conflict in GH Actions and fix failing e2e tests (#808)

* Fix: Duplicate artifact name causing 409 Conflict in GitHub Actions

* fix for unstable locators

* removed a commented line in swapSip10Velar.spec.ts

* Fix for workflow Upload Playwright report in ci/cd

* Terence/add min balance decimals (#810)

* add formatBalance to final quote display

* add formatBalance to quoteSummaryTile.tsx

* remove invalid code (its comparing the rate to the minimum received)

* fix remove wrapping

* Fix for failing test

* Fix for failing tests

---------

Co-authored-by: DuskaT021 <aleksa2601@gmail.com>

* updated the build-rc.yml post-comment

---------

Co-authored-by: GitHub Actions Bot <>
Co-authored-by: Terence Ng <ngtere@live.com.sg>
2024-12-05 16:36:59 +01:00
Duska.T
fa68ddc13e ENG-5792/Fixed the restore wallet flow and list rune flow (#789)
* clean up for list runes test

* chore: remove npm test from playwright ci

* removed the commented lines

* chore: add overwrite true to Upload Playwright report step in playwright.yml

* fixed test from test suite 5

* fixed test Visual Check Runes Transaction history

* Update the comment in onboarding.ts

---------

Co-authored-by: fede erbes <fedeerbes@gmail.com>
2024-11-21 15:50:20 +01:00
Tim Man
22d8313bed Tim/eng 5642 update GitHub actions away from uploaddownload artifactv3 (#757)
* chore: migrate actions/artifacts from v3 to v4

* chore: fix the merge release to remote script number of releases to sync

and add a PAGE env var in case we need to process beyond page 1
2024-11-11 12:41:48 +08:00
DuskaT021
e27bac47d6 chore: merge develop into release/v0.42.1 2024-09-18 11:43:21 +02:00
Eduard Bardají Puig
2db5bec579 Allow skipping startup animation 2024-09-17 23:47:45 +01:00
Duska.T
2ba747668f CI will no longer require UI test output (#589) 2024-09-16 10:57:17 +02:00
Den
e6c82b6c13 Add the E2E test result section to the PR template and updated the readme (#544)
* Add the E2E test result section to the PR template

* updated the pr description for running e2e tests

* moved the E2E section from readme to PR description

* updated the node version in the readme to 18

---------

Co-authored-by: DuskaT021 <aleksa2601@gmail.com>
2024-09-03 15:14:18 +02:00
fede erbes
fda4bb21fb fix: remove test step which is not longer used (#542) 2024-08-29 16:52:03 +02:00
jordankzf
94419635fd Remove vite 2024-08-29 17:31:02 +08:00
Tim Man
0ecb8adc39 refactor: move btc tx summary and runes summary parse logic into context (#417)
* refactor: move btc tx summary and runes summary parse logic into context

refactor: move btc tx summary and runes summary parse logic into context

refactor: move btc tx summary and runes summary parse logic into context

and split the transferSection with youWillSendSection

refactor: move btc tx summary and runes summary parse logic into context

refactor: move btc tx summary and runes summary parse logic into context

and split the transferSection with youWillSendSection

* chore: do TODO for a core type

* apply suggestions

* use newest core

* unused import

* refactor naming

* prepare todos

* commit work

* revert

* rebase new work

* fix some bugs

* fix linting

* Update src/app/screens/sendRune/index.tsx

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* review

* rename

* touchup + add next todo

* update todo

* remove unnecessary data imo

* Fix playwright-report upload for PR workflow

* touchup

---------

Co-authored-by: Terence Ng <ngtere@live.com.sg>
Co-authored-by: Christine Pinto <chrissie2788@gmail.com>
2024-07-26 16:41:33 +08:00
Eduard Bardají Puig
911bd5e94b Use type imports and knip 2024-07-17 09:23:17 +01:00
Den
67d957f657 [ENG-4272] Runes listing/unlisting flow (#332)
* initial setup

* fix mistakes

* Create spec file

* initial setup

* fix mistakes

* Create spec file

* update UI

* update UI

* touchup

* testing UI

* Merge branch 'terence/eng-4272-listrunes-1-ext-start-the-runes-listing-flow' of https://github.com/secretkeylabs/xverse-web-extension-private into terence/eng-4272-listrunes-1-ext-start-the-runes-listing-flow

* add select all toggle

* prepare set price navigation

* touchup

* touchup

* updates

* Add locators

* Add function clickOnSpecificToken

* updates

* updates

* updates

* fixes and updates

* remove log

* Adjust BTC transaction test

* add more steps

* remove log

* add global custom rune price

* add missed translations

* touchup issues

* add percentage label

* add percentage label

* small update

* fix key

* upgrade the xverse-core version, move the listRune styles into a separate file

* add big size warning, deselect all when at least 1 is selected, interface -> type

* deprecate the theme.spacing function, use the theme.space instead for the runes listing

* fix some styles, add a selected state for the rune item

* fixed typo in the file name: setRunePricetem.tsx -> setRunePriceItem.tsx

* update some styles

* Add edit button, add custom fee modal description

* update the Listed tab markup

* trigger prettier / touchup structure

* revert accident

* fix loading spinner container

* fix hook to distinguish listed/unlisted utxos

* render the listed items as an array

* Syntax fix

* add 10000 sat validation warning

* add individual edit price logic

* add individual edit price logic

* touchup

* dont round to integer

* fixup styling

* ensure always descending by rune value

* add entry point from home

* add some logic for the rune unlisting

* add fetching logic for the listed runes tab, make some style tweaks for loading, etc

* update text

* setup psbt + touchup scalings

* add additional check

* touchup

* fix filter

* test psbt

* test psbt

* test psbt

* remove list option from dashboard

* fix bug label

* fix typo

* upgrade the xverse-core version

* Add `no listed runes` / `no unlisted runes` message and reusable wrapper

* commit high sat validation and tx status flow after psbt

* fix floor price decimals

* Add SignMessageRequestInApp screen and message signing to unlist rune bundle

* Remove unused imports from the SignMessageRequestInApp screen

* add scroll bar - fix only allow integers before calling ME, add error state

* fix up toggle logic

* Revert "fix up toggle logic"

This reverts commit b9953e8f1a29da8569afb64b11592e989afa89f2.

* add min-height for loading spinner

* remove fixed total and touchup values

* fix up scrollbar and padding

* Fix the orderId property type

* Add the loading state for the cancel rune listing button

* Polish the rune unlisting ux (redirects, back button, etc)

* fix up navigation from psbt / tx-status page

* fix loading spinner and utils

* Fix the empty state copy

* Add list cancel flow

* cancel button redirect to rune dashboard and individual price edit deselects rune price options

* touchup

* touchup steps

* useReducer

* Tweak the unlisting message signing logic for ledger accounts

* Remove the unused imports

* Make the signMessageRequest screen styles reusable

* Fix the Receive popup checkbox

* implement back navigation

* fix bug interaction

* fix bug interaction

* fix back button

* Simplify callback function (#344)

* Cancel list flow

* update text

* Update src/app/screens/listRune/index.tsx

Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>

* remove un-used

* reviews

* reviews

* renaming

* usecallback

* Add TODOs for pair programming

* fix up useEffects and reducer logic

* rename

* fix up ordering

* Simplify logic (#346)

* use await

* use callback

* Add more checks

* reviews

* reviews

* npm i

* useQuery for rune psbt hook

* touchup

* revert use query and fix bug

* add background refetch option

* Optimise code

* Add more Checks for Review Transaction Page

* touchup

* Add list flow

* fix merge issues

* use latest core

* Fix Execution for E2E Tests to run in Shards

* fix latest changes

* remove unnecessary calls

* Add cancel listing flow

* code optimisation

* add loading icon and fix unlist item to display listing price

* use a safer calculation method

* fix to display total list price

* fix formatting

* Add reload step

* fix: add vout

* touchup

* Add more reloads

* Add truncate sum check

* add feature flag and update entry point

* fix up loading state

* add guards

* remove comment

* fix bug

* Add localexecution label

---------

Co-authored-by: Terence Ng <ngtere@live.com.sg>
Co-authored-by: Christine Pinto <chrissie2788@gmail.com>
Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>
2024-06-28 17:27:20 +08:00
Christine Pinto
8258826023 [Fix] Execution for E2E Tests to run in Shards (#356) 2024-06-20 14:48:16 +02:00
Christine Pinto
234b5fbc81 [ENG-4262] Add collectibles basic E2E tests (#326)
- Add locators
- Optimise Code Functions
- Adjust execution commands to exclude tests
- Separation collection and single item
2024-06-13 09:47:26 +02:00
Christine Pinto
383ebb0829 [Fix] Skip builds on draft PRs (#333) 2024-06-10 13:21:14 +02:00
fede erbes
4f82430fb2 chore: add ability to create releases of other branches in addition to the develop branch (#302) 2024-05-30 15:06:20 +02:00
Tim Man
e62707c2f1 chore: use the right scripts paths in release.yml (#298) 2024-05-29 17:59:22 +08:00
Christine Pinto
5e97cd4d5e [ENG-4390] Fix build env variables (#292) 2024-05-24 12:38:18 +02:00
Christine Pinto
3a7be17496 [ENG-4254] Add base Transaction flow (#264)
* Add restore wallet as a separate function
* Reduce retention-days for playwright reports
* Add getSeedWords to get the seedphrase via Env Variable
* Add two env variables for transaction flow
* Add TODOs for next iteration on transaction flow
* Add Env Variable to our example env file
* Add locators data-testida for transaction floe
---------

Co-authored-by: Denys Hriaznov <hriaznov.dev@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
2024-05-20 15:17:10 +02:00
Christine Pinto
8d23563254 [ENG-4217] Add setting flows (#233)
* [ENG-4214] Add visual check swap page

- Change uitest to E2Etest
- Add new locators on the swap page
- Switch Token and check insufficient fund error

* [ENG-4217] Add update password flow and settings tab check

* [ENG-4216] Backup wallet flow

- Increased amount of shards for e2e tests for PRs to 6

* [ENG-4215] Add change currency

* - fixed typo in readme

* Changed ShowButton to RevealButton
2024-04-30 11:34:40 +02:00
Christine Pinto
5817401ba8 [ENG-4214] Add checks for swap page (#230)
- Change uitest to E2Etest
- Add new locators on the swap page
- Switch Token and check insufficient fund error
- Add script for running the 2e2 tests in UI Mode
2024-04-29 13:36:35 +02:00
Christine Pinto
66e3877cd9 [ENG-4213]Add visual check for stacking tab (#224)
- Rename file for explore tab visual check
- Adjust build workflow that the smoke test doesn't run on the e2etest branches
2024-04-25 16:25:01 +02:00
Christine Pinto
dfce6f6e05 [ENG-4212] Add visual check for explore Tab (#222)
- Add locators for explore tab
- Adjust build workflow to be executed with e2etest branches
-  Update playwright
- Change ubuntu-latest to ubuntu-20.04 in the workflow files
2024-04-24 16:26:52 +02:00
Christine Pinto
df64a70957 [ENG-4078] Manage tokens (#221)
* [ENG-4133] Add "switch to testnet and back to mainnet" flow and functions

[ENG-4132]Add data-testid to network address input fields

* [ENG-4081] Add locators

* Add account check

* [ENG-4080] Account management

* [ENG-4079] Add token locators

* add check token page

* Rename startpage to wallet

* Add enable and disable token flow

* Add balance check and BRC-20 FLOW

Enable and disable all tokens SIP-10 AND BRC-20
Add one more shard for UI test execution for RC build

* Add { exact: true } to get exact match (case-sensitive and whole-string) for tokenName (example ORDI)

* Add workflow trigger for UI tests suite being exeuted for uitest branches for PRs
2024-04-24 14:22:22 +08:00
Christine Pinto
a4d46a54e9 [ENG-3979] Implement Execution plan (#190)
- Whole test suite is executed when creating a RC 
- Test suite is executed in 5 shards parallel
2024-04-16 09:52:36 +02:00
Christine Pinto
d2425efbf5 [ENG-3999] Onboarding part 2 (#184)
* Add storage seedphrase
* add 12 word seedphrase error message check
* add error message check for 24 word seedphrase
* optimize code, add switch 12 to 24 seedphrase test case
* add confirm address copy and save address in file
* [ENG-4031] Implement Sharding for test execution
* Add Lock and login flow
* Added attributes to elements in the homedashboard for better locators
* fix: prefer data-testid over id, and aria-label for options button
* Use static method (#187)
* [ENG-3979] Implement Smoketest execution for PR build
---------

Co-authored-by: DuskaT021 <aleksa2601@gmail.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>
2024-04-15 14:34:01 +02:00
Christine Pinto
03621754bd [ENG-4029]Integration of Playwright UI Tests in PR Workflow (#168)
- Add UI test suite to build.yml
- disable health check
2024-04-03 14:04:47 +02:00
Tim Man
46418f65d0 chore: fix release.yml 2024-04-03 17:49:48 +08:00
Tim Man
b86f0aa119 chore: fix permissions for merge 2024-04-03 13:21:52 +08:00
Tim Man
5da5a1ba92 chore: fix merge repos workflow permissions 2024-04-02 15:48:04 +08:00
Tim Man
0da55eeb95 chore: fix release develop workflow file (#167) 2024-04-02 15:05:45 +08:00
Tim Man
f9ffbba547 [ENG-3808] chore: script merge public to private (#155)
* chore: add a script for merging public to private

chore: update merge scripts

chore: update scripts with correct remote url

chore: fix gh cli check in scirpts

chore: fix scripts with pr command

chore: fix new lines

chore: fix attempt for the release pr action error: fatal unrelated histories

chore: add workflow to trigger the script

chore: remove trigger on pr

chore: rename workflow and add choice of direction

chore: update script with --unshallow

chore: remove --unshallow

chore: simplify merge script

chore: delete other script in favour of one way merges

chore: continue script if bad tags

chore: assign reviewers to the merge

chore: fix assign reviewer part

chore: oops remove merge markers

chore: loop for main and develop

chore: add script use to workflows

chore: remove unshallow for --allow-unrelated-histories

chore: remove comment

* chore: use a generic name for merge script

* chore: add CODEOWNERS file

* chore: fix asset upload and add steps to copy release to public
2024-04-02 14:47:13 +08:00
Christine Pinto
1e4d7a14ed [ENG-3978] Onboarding UI Test part 1 (#159)
Update ESLint to Version 8.40.0 and add ESLint Plugin Playwright
Adjust Screensize to 360x360 for CI
Add visual check for legal page
Add visual check error messages for password pages
Skip Backup flow
Setup backup and successfully creating a wallet
2024-03-28 11:43:37 +01:00
Den
9e3ba2bbe0 Merge pull request #130 from secretkeylabs/denys/eng-3842-add-the-mixpanel-events-for-featured-apps-in-the-extension
[ENG-3842] feat: Add the mixpanel events for featured apps in the extension
2024-03-25 16:13:17 +01:00
Christine Pinto
f13eb254ae [ENG-3956] setup healthcheck test (#153)
- install playwright and dependencies
- create basic healthcheck ui test
- setup github action workflow to execute all UI tests (playwright.yml)
- add healthcheck to build.yml
- add basic folder structure for UI test suite
- add documentation to execute UI tests
- add env. file comment to the setup documentation
- Apply suggestions from code review
2024-03-25 12:04:31 +01:00
Denys Hriaznov
0d302cd453 Add lazy loading for the mixpanel instances 2024-03-13 22:19:13 +01:00
Denys Hriaznov
b23e451c70 Add the MIX_PANEL_TOKEN_EXPLORE_APP to the .env.example file, as well as to the two workflow files 2024-03-13 19:34:32 +01:00
Tim Man
52e2f71c6e chore: attack zipped build to latest release on merge to main (#802) 2024-02-26 15:44:30 +08:00
Tim Man
c6ee41bcbc chore: fix update description on build-rc workflow (#772) 2024-01-25 17:23:28 +08:00
Tim Man
c3fa924309 chore: fix publish release workflow target committish (#758) 2024-01-16 18:08:07 +08:00
Tim Man
01f1b0dc2f Merge branch 'main' into release/v0.28.0 2024-01-12 00:26:24 +08:00
Tim Man
19d79bc94b Chore/workflow fix asset upload (#747) 2024-01-12 00:19:46 +08:00
Tim Man
123bae9e36 Merge branch 'main' into release/v0.28.0 2024-01-11 22:00:59 +08:00
Tim Man
84314b2882 chore: fix workflow bugs (#745) 2024-01-11 21:59:24 +08:00
Tim Man
a0e0a1382f chore: fix build-rc.yml workflow file (#744) 2024-01-11 19:55:38 +08:00
Tim Man
748bb2934e chore: fix build-rc.yml workflow file 2024-01-11 19:06:14 +08:00
Tim Man
9165a41c29 Chore/refactor workflows (#743)
* chore: trigger create rc release on PR to main

* chore: move release asset uploads for rc to build

* chore: split workflows into 2 for build and 1 for release

* chore: remove extra build deps step

* chore: add back missing env vars

* chore: comments and remove unnecessary conditionals

* chore: add git checkout where needed

* chore: clean up and remove create release step since it was moved

* chore: clean up workflow file

* chore: more cleanup

* chore: minor naming

* chore: minor naming

* chore: minot naming

* chore: more naming
2024-01-11 18:41:28 +08:00
Tim Man
f32e96cee4 chore: fix build workflow file (#734) 2024-01-03 12:09:03 +08:00
Tim Man
74394d3f4a [ENG-3325] chore: refactor workflows (#714)
* chore: trigger create rc release on PR to main

* chore: move release asset uploads for rc to build

* chore: split workflows into 2 for build and 1 for release

* chore: remove extra build deps step

* chore: add back missing env vars

* chore: comments and remove unnecessary conditionals

* chore: add git checkout where needed

* chore: clean up and remove create release step since it was moved

* chore: clean up workflow file

* chore: more cleanup

* chore: minor naming

* chore: minor naming

* chore: minot naming

* chore: more naming
2024-01-02 16:27:20 +08:00