Abdelhafidh Belalia
Abdelhafidh Belalia
The test unit should fail if we remove the `!isFocused` from `WorkspaceSwitcherPage` but currently it does not because the solution is implemented in the test itself
I don't see how the latest change will help. You should render the App (and the Workspace Switcher Page) from the app source and not by defining a function in...
Not a problem! Please use [PaginationTest](https://github.com/Expensify/App/blob/7bfb34527508b47732cab6d4280a943ffab48066/tests/ui/PaginationTest.tsx) as a reference instead. We render the `` and add onyx sample data (workspaces in this case) then we navigate to the workspace switcher...
@Krishna2323 Can you please let me know when this is ready for review
```tsx import * as NativeNavigation from '@react-navigation/native'; import {act, fireEvent, render, screen} from '@testing-library/react-native'; import Onyx from 'react-native-onyx'; import * as Localize from '@libs/Localize'; import * as AppActions from '@userActions/App';...
@Krishna2323 Wrap the calls in `act`
@Krishna2323 Instead of trying to fire the press event twice, mock `useIsFocused` to return `false` and fire the press event and verify that we weren't navigated. Then make the mock...
👋 If you need dynamic styles (styles that are passed through javascript) you could use https://github.com/s77rt/react-native-date-picker Disclaimer: I'm the author of that library
Not overdue. Still looking for proposals
@joekaufmanexpensify or @mountiny please assign @VickyStash