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

Solution #404

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Solution #404

wants to merge 2 commits into from

Conversation

mukutiuk
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.


Thank you for your hard work on this task! 😊 While your code is well-structured and meets most of the task requirements, there's a critical issue with the ArticlePage constructor that needs to be addressed before we can approve the pull request.

Key Issue:

  • ArticlePage Constructor: The assignment to this.url on line 23 overrides the url property set by the super(url) call. This could lead to unexpected behavior if the url property is intended to be used elsewhere in the PageObject class. It's important to either use a different property name for the combined URL or ensure that this behavior is intentional and won't cause issues in other parts of the code.

Once this issue is resolved, your solution should be ready for approval. Keep up the great work, and feel free to reach out if you have any questions or need further assistance! 🚀

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

Comment on lines 21 to 23
constructor(url, slug) {
super(url);
this.url = url + slug;

Choose a reason for hiding this comment

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

In the ArticlePage constructor, the this.url assignment on line 23 overrides the url property set by the super(url) call. This could lead to unexpected behavior if url is intended to be used elsewhere in the PageObject class. Consider using a different property name for the combined URL or ensure that this behavior is intentional.

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 submission! 🎉 Your code is generally well-structured and meets the task requirements. However, there is a critical issue with the ArticlePage constructor: the assignment to this.url on line 23 overrides the url property set by the super(url) call. This could lead to unexpected behavior if the url property is intended to be used elsewhere in the PageObject class. Consider using a different property name for the combined URL or ensure that this behavior is intentional and won't cause issues in other parts of the code.

Overall, your implementation is correct and aligns with the specified requirements. Keep up the good work, and make sure to address the mentioned issue to avoid similar problems in the future. This decision is made to help you move forward with your learning journey. Keep improving and learning from your experiences! 🚀

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

Comment on lines +22 to +23
super(url);
this.url += slug;

Choose a reason for hiding this comment

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

The assignment to this.url on line 23 overrides the url property set by the super(url) call. Consider using a different property name for the combined URL or ensure this behavior is intentional and won't cause issues in other parts of the code.

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