-
Notifications
You must be signed in to change notification settings - Fork 2
✨ app: home screen revamp #775
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
base: main
Are you sure you want to change the base?
Changes from all commits
0bf1749
65d4975
bf3ec84
1427cb2
455a249
0115e16
18f2a76
10e4f15
7daf98a
d9bbda5
37be1a8
fcfdce3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 adjust tamagui tokens |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 restyle card status component | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 restyle action buttons |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 restructure sheets layout |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 adjust home scroll view gaps |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 apply tamagui spacing tokens |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 refine benefits carousel |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 replace fonts |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 add vertical frame to styled button |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💫 unify animation parameters |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| 💄 restyle portfolio summary |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| appId: ${APP_ID ?? "app.exactly"} | ||
| --- | ||
| # HACK https://github.com/mobile-dev-inc/Maestro/issues/2914 | ||
| - runFlow: | ||
| when: { true: "${maestro.platform != 'web'}" } | ||
| commands: | ||
| - copyTextFrom: "${aria}" | ||
| - runFlow: | ||
| when: { platform: web } | ||
| commands: | ||
| - copyTextFrom: | ||
| id: "${aria}" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| appId: ${APP_ID ?? "app.exactly"} | ||
| --- | ||
| - repeat: | ||
| while: | ||
| notVisible: Copy your ID and get 30 days of travel insurance for free on Pax Assistance. | ||
| commands: | ||
| - extendedWaitUntil: | ||
| visible: 30 days of free travel insurance | ||
| timeout: 15000 | ||
| - tapOn: Get now | ||
| - assertVisible: "Copy Pax ID [a-z0-9]{10}" | ||
| - assertVisible: Get benefit | ||
| - runFlow: { file: tapAria.yaml, env: { aria: Close } } | ||
| - repeat: | ||
| while: | ||
| notVisible: Stay connected around the world. | ||
| commands: | ||
| - extendedWaitUntil: | ||
| visible: 20% OFF on eSims | ||
| timeout: 15000 | ||
| - tapOn: 20% OFF on eSims | ||
| - assertVisible: Get benefit | ||
| - runFlow: { file: tapAria.yaml, env: { aria: Close } } | ||
| - repeat: | ||
| while: | ||
| notVisible: Visa Signature Exa Card benefits | ||
| commands: | ||
| - extendedWaitUntil: | ||
| visible: Visa Signature benefits | ||
| timeout: 15000 | ||
| - tapOn: Learn more | ||
| - assertVisible: Go to Visa | ||
| - runFlow: { file: tapAria.yaml, env: { aria: Close } } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| appId: ${APP_ID ?? "app.exactly"} | ||
| --- | ||
| - tapOn: Home | ||
| - assertVisible: ${output.account.slice(0, 6)}…${output.account.slice(-4)} | ||
| - runFlow: | ||
| when: { true: "${maestro.platform != 'web'}" } | ||
| commands: [{ assertVisible: Settings }] | ||
| - runFlow: | ||
| when: { platform: web } | ||
| commands: [{ assertVisible: { id: Settings } }] | ||
| - runFlow: { file: tapAria.yaml, env: { aria: Hide sensitive } } | ||
| - runFlow: | ||
| when: { true: "${maestro.platform != 'web'}" } | ||
| commands: | ||
| - assertNotVisible: | ||
| text: \$[\s\d,.\xa0]+ | ||
| below: Portfolio | ||
| - runFlow: | ||
| when: { platform: web } | ||
| commands: | ||
| - assertNotVisible: | ||
| id: \$[\s\d,.\xa0]+ | ||
| - runFlow: { file: tapAria.yaml, env: { aria: Show sensitive } } | ||
| - runFlow: | ||
| when: { true: "${maestro.platform != 'web'}" } | ||
| commands: | ||
| - assertVisible: | ||
| text: \$[\s\d,.\xa0]+ | ||
| below: Portfolio | ||
| - runFlow: | ||
| when: { platform: web } | ||
| commands: | ||
| - assertVisible: | ||
| id: \$[\s\d,.\xa0]+ | ||
| - runFlow: readPortfolio.yaml | ||
| - assertTrue: ${output.portfolio > 0} | ||
| - tapOn: Manage portfolio | ||
| - assertVisible: Your Portfolio | ||
| - runFlow: { file: tapAria.yaml, env: { aria: Back } } | ||
| - assertVisible: Add funds | ||
| - assertVisible: Send | ||
| - assertVisible: Swap | ||
| - assertNotVisible: Getting Started | ||
| - runFlow: { file: scrollTo.yaml, env: { element: Upcoming payments } } | ||
| - runFlow: { file: scrollTo.yaml, env: { element: Latest activity } } | ||
| - assertNotVisible: No activity yet | ||
| - tapOn: View all | ||
| - tapOn: Home | ||
| - tapOn: Home | ||
| - waitForAnimationToEnd | ||
| - assertVisible: Portfolio |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| appId: ${APP_ID ?? "app.exactly"} | ||
| --- | ||
| - copyTextFrom: | ||
| below: Your portfolio | ||
| text: ^(US)?\$[\s\d,.\xa0]+$ | ||
| - runFlow: | ||
| file: copyAria.yaml | ||
| env: { aria: "^(US)?\\$[\\s\\d,.\\xa0]+$" } | ||
dieguezguille marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This selector now captures any dollar-formatted string on the screen, but the revamped home view shows multiple Useful? React with 👍 / 👎. |
||
| - evalScript: ${output.portfolio = Number(maestro.copiedText.replace(/\D/g, "")) / 100} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| appId: ${APP_ID ?? "app.exactly"} | ||
| --- | ||
| # HACK https://github.com/mobile-dev-inc/maestro/issues/1775 | ||
| # maestro web uses window.scroll() which doesn't reach inner scroll containers | ||
| - runFlow: | ||
| when: { true: "${maestro.platform != 'web'}" } | ||
| commands: | ||
| - scrollUntilVisible: { element: "${element}" } | ||
| - runFlow: | ||
| when: { platform: web } | ||
| commands: | ||
| - evalScript: ${output.scrollDeadline = Date.now() + 30000} | ||
| - evalScript: ${output.found = false} | ||
| - repeat: | ||
| while: | ||
| true: "${!output.found}" | ||
| commands: | ||
| - runFlow: | ||
| when: { visible: "${element}" } | ||
| commands: [{ evalScript: "${output.found = true}" }] | ||
| - runFlow: | ||
| when: { visible: { id: "${element}" } } | ||
| commands: [{ evalScript: "${output.found = true}" }] | ||
| - runFlow: | ||
| when: { true: "${!output.found}" } | ||
| commands: | ||
| - runFlow: | ||
| when: { true: "${Date.now() >= output.scrollDeadline}" } | ||
| commands: [{ evalScript: "${throw new Error('scroll timeout')}" }] | ||
| - swipe: | ||
| start: "50%,40%" | ||
| end: "50%,10%" | ||
| duration: 500 | ||
| - runFlow: | ||
| when: { true: "${typeof offset !== 'undefined' && Number(offset) > 0}" } | ||
| commands: | ||
| - evalScript: ${output.scrollExtra = 0} | ||
| - repeat: | ||
| while: | ||
| true: "${output.scrollExtra < Number(offset)}" | ||
| commands: | ||
| - swipe: | ||
| start: "50%,70%" | ||
| end: "50%,50%" | ||
| duration: 300 | ||
| - evalScript: ${output.scrollExtra = output.scrollExtra + 1} |
Uh oh!
There was an error while loading. Please reload this page.