[No QA][TS migration] migrate workflow tests#38491
Conversation
| const TESTBUILD__VALIDATEACTOR__TEAM_MEMBER_HAS_FLAG__STEP_MOCKS = [ | ||
| TESTBUILD__VALIDATEACTOR__IS_TEAM_MEMBER__TRUE__STEP_MOCK, | ||
| TESTBUILD__VALIDATEACTOR__SET_HAS_READY_TO_BUILD_LABEL_FLAG__TRUE__STEP_MOCK, | ||
| ] as const; |
There was a problem hiding this comment.
why remove as const? Those arrays aren't supposed to be modified, so that's fine in this file.
UPDATE: it's been causing erorrs, because it lacked satisfies StepIdentifier[]
| VALIDATEGITHUBACTIONS__VERIFY__SETUP_NODE__STEP_MOCK, | ||
| VALIDATEGITHUBACTIONS__VERIFY__VERIFY_JAVASCRIPT_ACTION_BUILDS__STEP_MOCK, | ||
| VALIDATEGITHUBACTIONS__VERIFY__VALIDATE_ACTIONS_AND_WORKFLOWS__STEP_MOCK, | ||
| ] as const; |
| VERIFYPODFILE__VERIFY__SETUP_NODE__STEP_MOCK, | ||
| VERIFYPODFILE__VERIFY__VERIFY_PODFILE__STEP_MOCK, | ||
| ] as const; | ||
| const VERIFYPODFILE__VERIFY__STEP_MOCKS = [VERIFYPODFILE__VERIFY__CHECKOUT__STEP_MOCK, VERIFYPODFILE__VERIFY__SETUP_NODE__STEP_MOCK, VERIFYPODFILE__VERIFY__VERIFY_PODFILE__STEP_MOCK]; |
| [], | ||
| ); | ||
| const VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__STEP_MOCKS = [VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__VERIFY_SIGNED_COMMITS__STEP_MOCK] as const; | ||
| const VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__STEP_MOCKS = [VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__VERIFY_SIGNED_COMMITS__STEP_MOCK]; |
| const ExtendedAct = require('./utils/ExtendedAct').default; | ||
| /* eslint-disable @typescript-eslint/naming-convention */ | ||
|
|
||
| /* eslint-disable @typescript-eslint/require-await */ |
| const assertions = require('./assertions/validateGithubActionsAssertions'); | ||
| const mocks = require('./mocks/validateGithubActionsMocks'); | ||
| const ExtendedAct = require('./utils/ExtendedAct').default; | ||
| /* eslint-disable @typescript-eslint/require-await */ |
There was a problem hiding this comment.
those functions didn't need async apparently, it didn't break the tests
| const assertions = require('./assertions/verifyPodfileAssertions'); | ||
| const mocks = require('./mocks/verifyPodfileMocks'); | ||
| const ExtendedAct = require('./utils/ExtendedAct').default; | ||
| /* eslint-disable @typescript-eslint/require-await */ |
| const assertions = require('./assertions/verifySignedCommitsAssertions'); | ||
| const mocks = require('./mocks/verifySignedCommitsMocks'); | ||
| const ExtendedAct = require('./utils/ExtendedAct').default; | ||
| /* eslint-disable @typescript-eslint/require-await */ |
| const mocks = require('./mocks/testBuildMocks'); | ||
| const ExtendedAct = require('./utils/ExtendedAct').default; | ||
| /* eslint-disable @typescript-eslint/naming-convention */ | ||
|
|
|
@SzymczakJ Is this PR ready for cross-review? |
|
@fabioh8010 sorry, a PR that I based on was reverted 😅 . Just fixed conflicts |
fabioh8010
left a comment
There was a problem hiding this comment.
LGTM, but please merge with main and test if workflow tests are passing before opening (npm run workflow-test)
|
@mollfpr bump! |
|
@mollfpr bump 😃 |
Reviewer Checklist
Screenshots/Videos |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #32045 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
| @@ -19,4 +19,4 @@ function assertVerifyJobExecuted(workflowResult: Step[], didExecute = true) { | |||
| } | |||
|
|
|||
| // eslint-disable-next-line import/prefer-default-export | |||
There was a problem hiding this comment.
Can we remove this eslint now?
| @@ -18,4 +18,4 @@ function assertVerifyJobExecuted(workflowResult: Step[], didExecute = true) { | |||
| } | |||
|
|
|||
| // eslint-disable-next-line import/prefer-default-export | |||
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|

Details
Fixed Issues
$ #32045
$ #32044
$ #32043
$ #32041
$ #32042
PROPOSAL: N/A
Tests
npm run workflow-testOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop