8000 Add wrap test and go through settings flows by BrodyHughes · Pull Request #6700 · rainbow-me/rainbow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add wrap test and go through settings flows #6700

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

Merged
merged 3 commits into from
Jun 25, 2025

Conversation

BrodyHughes
Copy link
Member
@BrodyHughes BrodyHughes commented Jun 18, 2025

This PR adds one flow and several test case assertions.
Added:

  • Eth > Weth wrapping
  • flipping assets
  • review sheet
  • changing gas
  • degen mode
  • slippage
  • activity screen
  • preferred network
  • home screen balance updates

I decided to split these tests through the two swaps flows we currently have so that no one is super long and maybe to also reduce flakiness if possible.

@jinchung
Copy link
Member

Launch in simulator or device for 6b5c36f

@jinchung
Copy link
Member

Launch in simulator or device for 1c3335b

@@ -8,7 +8,7 @@ env:
visible:
id: welcome-screen
# the test fail quite often if the timeout is too low
timeout: 30000
timeout: 60000
Copy link
Member Author

Choose a reason for hiding this comment

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

noticed some timeout issues with 30 occasionally on startup

@@ -203,12 +203,18 @@ export function useAnimatedSwapStyles({
SPRING_CONFIGS.springConfig
),
borderRadius: withSpring(isBottomSheetOpen ? 40 : 0, SPRING_CONFIGS.springConfig),
bottom: withSpring(isBottomSheetOpen ? Math.max(safeAreaInsetValues.bottom, 28) : -2, SPRING_CONFIGS.springConfig),
bottom: IS_TEST
Copy link
Member Author

Choose a reason for hiding this comment

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

a lot of this conditional styling for IS_TEST is necessary for maestro to see elements

@@ -45,6 +46,9 @@ export default function RainbowContextWrapper({ children }: PropsWithChildren) {
const [globalState, updateGlobalState] = useState({});

useEffect(() => {
if (IS_TEST) {
Copy link
Member Author

Choose a reason for hiding this comment

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

this adds WETH to the favorites list, which allows us to swap into it

backgroundColor="accent"
style={{ maxWidth: 175 }}
>
<Box as={ButtonPressAnimation} paddingVertical="8px" marginVertical="-8px" style={{ maxWidth: 175 }}>
Copy link
Member Author

Choose a reason for hiding this comment

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

removed background color here. I think this was a bug. caused the gas options to have a blue squared background on Android.

@BrodyHughes BrodyHughes force-pushed the brody/swaps-test-expansion branch from de6b9cf to 49edc55 Compare June 24, 2025 16:54
@BrodyHughes BrodyHughes requested a review from EQuimper June 24, 2025 16:55
@BrodyHughes BrodyHughes changed the title [WIP] add wrap test and go through settings flows Add wrap test and go through settings flows Jun 24, 2025
@BrodyHughes
Copy link
Member Author

Note for reviewers: Unit test failure is unrelated and @natew is handing in a separate PR.

@BrodyHughes BrodyHughes merged commit 123d45e into develop Jun 25, 2025
10 of 18 checks passed
@BrodyHughes BrodyHughes deleted the brody/swaps-test-expansion branch June 25, 2025 17:13
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.

3 participants
0