* attempt to fix base timeout error on fastlane for release build (#9037)
(cherry picked from commit d00407c330)
* fix test on GlobalScheduledPostList
---------
Co-authored-by: sabril <5334504+saturninoabril@users.noreply.github.com>
This commit is contained in:
parent
929102628b
commit
fffe3ef159
2 changed files with 12 additions and 1 deletions
|
|
@ -23,6 +23,13 @@ jest.mock('./global_scheduled_post_list', () => ({
|
|||
default: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('react-native', () => ({
|
||||
...jest.requireActual('react-native'),
|
||||
DeviceEventEmitter: {
|
||||
emit: jest.fn(),
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mocked(GlobalScheduledPostList).mockImplementation((props) => React.createElement('GlobalScheduledPostList', {...props, testID: 'global-scheduled-post-list'}));
|
||||
|
||||
describe('GlobalScheduledPostList', () => {
|
||||
|
|
@ -114,7 +121,9 @@ describe('GlobalScheduledPostList', () => {
|
|||
const globalScheduledPostList = getByTestId('global-scheduled-post-list');
|
||||
expect(globalScheduledPostList.props.tutorialWatched).toBe(false);
|
||||
|
||||
await storeGlobal(Tutorial.SCHEDULED_POSTS_LIST, 'true', false);
|
||||
await act(async () => {
|
||||
await storeGlobal(Tutorial.SCHEDULED_POSTS_LIST, 'true', false);
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
const updatedGlobalScheduledPostList = getByTestId('global-scheduled-post-list');
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ AWS_REGION=us-east-1
|
|||
BUILD_FOR_RELEASE=true
|
||||
COLLECT_NETWORK_METRICS=false
|
||||
EXTENSION_APP_IDENTIFIER=com.mattermost.rn.MattermostShare
|
||||
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT=120
|
||||
FASTLANE_XCODEBUILD_SETTINGS_RETRIES=6
|
||||
IOS_APP_GROUP=group.com.mattermost
|
||||
IOS_BUILD_EXPORT_METHOD=app-store
|
||||
IOS_ICLOUD_CONTAINER=iCloud.com.mattermost.rn
|
||||
|
|
|
|||
Loading…
Reference in a new issue