Skip to content
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

Fix: Failing tests cases 2 #42

Merged
merged 1 commit into from
May 2, 2024

Conversation

ameerul-deriv
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented May 2, 2024

Preview Link: https://fix-test-cases-2.deriv-p2p.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@@ -275,62 +275,6 @@ describe('PaymentMethodForm', () => {
);
expect(onResetFormState).toHaveBeenCalled();
});
it('should show the error modal when a payment method is not created successfully and close it when the ok button is clicked', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there were some issues related to this modal, we need to migrate the modals to the one in deriv-com/ui and test the modals itself. But coverage is still at 100% for this component so it is safe to delete:

Screenshot 2024-05-02 at 4 03 35 PM

@@ -64,25 +75,15 @@ describe('ProfileBalance', () => {
const dailyAvailableSellLimit = screen.getByTestId('dt_profile_balance_available_sell_limit');
expect(within(dailyAvailableSellLimit).getByText('600.00 USD')).toBeInTheDocument();
});
it('should render eligibility for daily limit upgrade', async () => {
it('should render ProfileDailyLimit', () => {
mockAdvertiserStatsProp = {
advertiserStats: {
...mockAdvertiserStatsProp.advertiserStats,
isEligibleForLimitUpgrade: true,
},
};
render(<ProfileBalance {...mockAdvertiserStatsProp} />);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Profile Daily Limit is already covered, both components have 100% coverage

Screenshot 2024-05-02 at 4 05 44 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

covered the daily limit modal test coverage above already

@farrah-deriv farrah-deriv merged commit 1f43466 into deriv-com:master May 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants