Skip to content

Commit

Permalink
[#1515] Update snapshot & fix some failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed May 28, 2024
1 parent c6cd1a5 commit 99177e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/src/pages/__tests__/Home.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('Homepage', () => {
beforeAll(() => {
UserState.update((s) => {
s.id = 1;
s.syncWifiOnly = 0;
});
UIState.update((s) => {
s.online = true;
Expand Down Expand Up @@ -206,13 +207,15 @@ describe('Homepage', () => {
});

it('should disable sync datapoint button when syncWifiOnly is true & network type cellular', async () => {
const { getByTestId } = render(<HomePage navigation={mockNavigation} />);

act(() => {
UserState.update((s) => {
s.syncWifiOnly = 1;
});
});

const { getByTestId } = render(<HomePage navigation={mockNavigation} />);

act(() => {
UIState.update((s) => {
s.networkType = 'CELLULAR';
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ exports[`AuthFormPage renders correctly 1`] = `
}
>
App version -
4.0.0
4.0.2
</Text>
<Modal
hardwareAccelerated={false}
Expand Down

0 comments on commit 99177e2

Please sign in to comment.