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

Added test #292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

MarianaQAaug2024
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on your Pull Request! 🎉 While there are a couple of issues to address, such as ensuring credit card numbers are masked for security and correcting the use of faker.date.future(), your effort and progress are commendable. Please review the comments to improve your code. Remember, addressing these critical issues will help you avoid similar problems in the future. Keep up the good work and continue learning from these experiences! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +17 to +18
expirationMonth: faker.date.month(),
expirationYear: faker.date.future({ years: 5 }).getFullYear()

Choose a reason for hiding this comment

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

The method faker.date.future() does not accept any arguments. To get a future year, you might want to use faker.date.future().getFullYear() without passing an argument.

Comment on lines +53 to +54
cy.get('.lead').should('include.text', user.name.split(' ')[0]);
cy.get('.lead').should('include.text', user.creditCard.number);

Choose a reason for hiding this comment

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

Displaying the full credit card number in the UI might not be secure. Consider masking it or only showing the last few digits.

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.

2 participants