-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[NOQA] fix reassure test suit errors #50869
[NOQA] fix reassure test suit errors #50869
Conversation
@arosiclair 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] |
3ad164a
to
07f8dbd
Compare
4d98393
to
626d6f4
Compare
@OlimpiaZurek is there an issue for this? |
a687713
to
454b6d1
Compare
here is an issue: #50994 |
Thanks. Be sure to add the issue to the description before opening the PR. Otherwise a random engineer will be assigned (like me). Or you can just open the PR as a draft. |
Reviewer Checklist
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.
Looks great, thanks for saving couple minutes on each run!
@@ -206,7 +206,10 @@ const mockRoute = {params: {reportID: '1', reportActionID: ''}, key: 'Report', n | |||
test('[ReportScreen] should render ReportScreen', async () => { | |||
const {addListener} = createAddListenerMock(); | |||
const scenario = async () => { | |||
await screen.findByTestId(`report-screen-${report.reportID}`); | |||
// wrapp the screen with waitFor to wait for the screen to be rendered |
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.
// wrapp the screen with waitFor to wait for the screen to be rendered | |
// wrap the screen with waitFor to wait for the screen to be rendered |
@@ -43,7 +44,7 @@ const getMockedReportsMap = (length = 100) => { | |||
return mockReports; | |||
}; | |||
|
|||
const mockedResponseMap = getMockedReportsMap(5); | |||
const mockedResponseMap = getMockedReportsMap(500); |
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.
hah
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.51-1 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.51-4 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.51-4 🚀
|
Details
This PR addresses the excessive logging issue during Reassure performance test runs on CI by removing unnecessary
console.error
logs and migrating from themeasurePerformance
API to themeasureRender
API. This should reduce logging and improve overall test execution efficiency.Fixed Issues
$ #50994
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop