-
Notifications
You must be signed in to change notification settings - Fork 666
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
Conversation
@@ -8,7 +8,7 @@ env: | |||
visible: | |||
id: welcome-screen | |||
# the test fail quite often if the timeout is too low | |||
timeout: 30000 | |||
timeout: 60000 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 }}> |
There was a problem hiding this comment.
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.
de6b9cf
to
49edc55
Compare
Note for reviewers: Unit test failure is unrelated and @natew is handing in a separate PR. |
This PR adds one flow and several test case assertions.
Added:
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.