-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TS migration] Migrate killApp from E2E to typescript #36466
[TS migration] Migrate killApp from E2E to typescript #36466
Conversation
tests/e2e/utils/killApp.ts
Outdated
type KillApp = (platform: string, packageName: string) => Promise<void>; | ||
|
||
const killApp: KillApp = function (platform = 'android', packageName = MAIN_APP_PACKAGE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this?
type KillApp = (platform: string, packageName: string) => Promise<void>; | |
const killApp: KillApp = function (platform = 'android', packageName = MAIN_APP_PACKAGE) { | |
function killApp(platform = 'android', packageName = MAIN_APP_PACKAGE): Promise<void> { |
# Conflicts: # tests/e2e/utils/killApp.ts
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -1,11 +1,13 @@ | |||
import config from '../config'; | |||
import execAsync from './execAsync'; | |||
|
|||
export default function (platform = 'android', packageName = config.APP_PACKAGE) { | |||
const killApp = function (platform = 'android', packageName = config.MAIN_APP_PACKAGE): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ruben-rebelo Should we add type for param here
platform: string = 'android', packageName: string = config.APP_PACKAGE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more note here, in this PR we remove APP_PACKAGE and add MAIN_APP_PACKAGE. But we miss to update here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DylanDylann I don't think so, if you add the type even lint complains about Type trivially inferred as we are directly assigning a string to the param.
Regarding the APP_PACKAGE part I've noticed that and I've changed it to MAIN_APP_PACKAGE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. But It doesn't relate to this PR so I give a note for more clear
Reviewer Checklist
Don't need to add videos for migrating test file Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25287 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
🚀 Deployed to staging by https://github.com/blimpich in version: 1.4.44-0 🚀
|
@ruben-rebelo is this internal PR? |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
[TS migration] Migrate killApp util from E2E to typescript
Fixed Issues
$ #25287
PROPOSAL: N/A
Tests
Verify that no errors appear in the JS console
Run E2E tests works as before
The E2E tests kill the app correctly
Offline tests
N/A
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
N/a
Android: mWeb Chrome
N/a
iOS: Native
N/a
iOS: mWeb Safari
N/a
MacOS: Chrome / Safari
N/a
MacOS: Desktop
N/a