Automated cherry pick of #9037 (#9038)

* 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:
Mattermost Build 2025-07-29 07:09:08 +03:00 committed by GitHub
parent 929102628b
commit fffe3ef159
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -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');

View file

@ -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