-
Notifications
You must be signed in to change notification settings - Fork 390
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
base: master
Are you sure you want to change the base?
Solution #404
Conversation
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.
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 tothis.url
on line 23 overrides theurl
property set by thesuper(url)
call. This could lead to unexpected behavior if theurl
property is intended to be used elsewhere in thePageObject
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.
src/pageObject.js
Outdated
constructor(url, slug) { | ||
super(url); | ||
this.url = url + slug; |
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.
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.
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.
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! ✨
super(url); | ||
this.url += slug; |
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.
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.
No description provided.