Skip to content

Commit

Permalink
Merge pull request #21 from callstack-internal/fix/43549/skip-problem…
Browse files Browse the repository at this point in the history
…atic-performance-tests

[NOQA] skip Reassure performance tests
  • Loading branch information
chrispader authored Jun 12, 2024
2 parents 14fe781 + b905341 commit 3c4c177
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions tests/perf-test/ReportActionCompose.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function ReportActionComposeWrapper() {
}
const mockEvent = {preventDefault: jest.fn()};

test('[ReportActionCompose] should render Composer with text input interactions', async () => {
test.skip('[ReportActionCompose] should render Composer with text input interactions', async () => {
const scenario = async () => {
// Query for the composer
const composer = await screen.findByTestId('composer');
Expand All @@ -121,7 +121,7 @@ test('[ReportActionCompose] should render Composer with text input interactions'
return waitForBatchedUpdates().then(() => measurePerformance(<ReportActionComposeWrapper />, {scenario}));
});

test('[ReportActionCompose] should press add attachemnt button', async () => {
test.skip('[ReportActionCompose] should press add attachemnt button', async () => {
const scenario = async () => {
// Query for the attachment button
const hintAttachmentButtonText = Localize.translateLocal('common.create');
Expand All @@ -133,7 +133,7 @@ test('[ReportActionCompose] should press add attachemnt button', async () => {
return waitForBatchedUpdates().then(() => measurePerformance(<ReportActionComposeWrapper />, {scenario}));
});

test('[ReportActionCompose] should press add emoji button', async () => {
test.skip('[ReportActionCompose] should press add emoji button', async () => {
const scenario = async () => {
// Query for the emoji button
const hintEmojiButtonText = Localize.translateLocal('reportActionCompose.emoji');
Expand All @@ -145,7 +145,7 @@ test('[ReportActionCompose] should press add emoji button', async () => {
return waitForBatchedUpdates().then(() => measurePerformance(<ReportActionComposeWrapper />, {scenario}));
});

test('[ReportActionCompose] should press send message button', async () => {
test.skip('[ReportActionCompose] should press send message button', async () => {
const scenario = async () => {
// Query for the send button
const hintSendButtonText = Localize.translateLocal('common.send');
Expand All @@ -157,7 +157,7 @@ test('[ReportActionCompose] should press send message button', async () => {
return waitForBatchedUpdates().then(() => measurePerformance(<ReportActionComposeWrapper />, {scenario}));
});

test('[ReportActionCompose] render composer with attachement modal interactions', async () => {
test.skip('[ReportActionCompose] render composer with attachement modal interactions', async () => {
const scenario = async () => {
const hintAddAttachmentButtonText = Localize.translateLocal('reportActionCompose.addAttachment');
const hintAssignTaskButtonText = Localize.translateLocal('newTaskPage.assignTask');
Expand Down
4 changes: 2 additions & 2 deletions tests/perf-test/ReportActionsList.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function ReportActionsListWrapper() {
);
}

test('[ReportActionsList] should render ReportActionsList with 500 reportActions stored', () => {
test.skip('[ReportActionsList] should render ReportActionsList with 500 reportActions stored', () => {
const scenario = async () => {
await screen.findByTestId('report-actions-list');
const hintText = Localize.translateLocal('accessibilityHints.chatMessage');
Expand All @@ -130,7 +130,7 @@ test('[ReportActionsList] should render ReportActionsList with 500 reportActions
.then(() => measurePerformance(<ReportActionsListWrapper />, {scenario}));
});

test('[ReportActionsList] should scroll and click some of the reports', () => {
test.skip('[ReportActionsList] should scroll and click some of the reports', () => {
const eventData = {
nativeEvent: {
contentOffset: {
Expand Down
2 changes: 1 addition & 1 deletion tests/perf-test/ReportScreen.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const report = {...createRandomReport(1), policyID: '1'};
const reportActions = ReportTestUtils.getMockedReportActionsMap(1000);
const mockRoute = {params: {reportID: '1', reportActionID: ''}, key: 'Report', name: 'Report' as const};

test('[ReportScreen] should render ReportScreen', () => {
test.skip('[ReportScreen] should render ReportScreen', () => {
const {triggerTransitionEnd, addListener} = TestHelper.createAddListenerMock();
const scenario = async () => {
/**
Expand Down
2 changes: 1 addition & 1 deletion tests/perf-test/SidebarLinks.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const getMockedReportsMap = (length = 100) => {

const mockedResponseMap = getMockedReportsMap(500);

describe('SidebarLinks', () => {
describe.skip('SidebarLinks', () => {
beforeAll(() => {
Onyx.init({
keys: ONYXKEYS,
Expand Down

0 comments on commit 3c4c177

Please sign in to comment.