Skip to content

solution #5

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

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

solution #5

wants to merge 2 commits into from

Conversation

dssenyk
Copy link

@dssenyk dssenyk commented Jul 29, 2025

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.

Review Summary

Thank you for your hard work! Before this PR can be approved, there are a few critical issues that need to be addressed: (1) The class in InternalViewArticlePage.js is incorrectly named (InternalHomePage instead of InternalViewArticlePage), which will break imports and usage; (2) In the test canFindOwnArticleByTag.spec.js, you should pass a single tag to clickTag instead of the whole array; (3) In ArticleContentBlock.js, update the Playwright selector to use { name: username } instead of { username }. Please also consider fixing minor typos and missing semicolons for best practices. Once these are fixed, your solution will be ready for approval! 🚀


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

Important

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

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

}

authorLinkInArticleHeader(username) {
return this.page.getByRole('link', { username }).first();

Choose a reason for hiding this comment

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

Error: The usage of getByRole('link', { username }) is likely incorrect. The Playwright getByRole method expects the second argument to be an options object, typically with a 'name' property for the 'link' role. You probably meant { name: username } instead of { username }. Please update this to avoid runtime errors.

@dssenyk
Copy link
Author

dssenyk commented Jul 29, 2025

i want to clarify a few things: @mateacademy-ai-mentor

  1. InternalViewArticlePage is named fine, there are InternalViewArticlePage and InternalHomePage, both work as expected
  2. i fixed 'tags' issues
  3. i fixed selector's issues

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.

Review Summary

Great work! All previously raised issues have been addressed, and your code now meets all the core requirements and passes all tests. The class naming concern is resolved, and everything is structured correctly. Keep up the excellent work! 🚀


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

Footnotes

  1. Rate AI review example

Comment on lines +6 to +12
export class InternalHomePage extends BaseViewArticlePage {
constructor(page, userId = 0) {
super(page, userId);
this.articleListItem = new ArticleListItem(this.page, userId);
this.authorsArticleContentBlock = new AuthorsArticleContentBlock(this.page, userId);
}
}

Choose a reason for hiding this comment

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

Error: The class is named InternalHomePage, but it should be InternalViewArticlePage to match the file name and expected usage. This mismatch will cause import and usage errors elsewhere. Please rename the class accordingly.

Copy link

@djtyrf312 djtyrf312 left a comment

Choose a reason for hiding this comment

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

Good job!

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