Skip to content

Resolved#486

Open
GeorgeSavostikov wants to merge 1 commit into
mate-academy:masterfrom
GeorgeSavostikov:testing
Open

Resolved#486
GeorgeSavostikov wants to merge 1 commit into
mate-academy:masterfrom
GeorgeSavostikov:testing

Conversation

@GeorgeSavostikov

Copy link
Copy Markdown

No description provided.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Excellent work on the overall structure with classes and inheritance! Your solution is very close. However, changes are needed because the strings returned by several methods do not exactly match the task requirements, which is a critical blocker for this task. Please adjust the return values in src/pageObject.js to remove extra spaces:

  • In clickOnLogo and clickOnCommentButton, the string should be 'Click on the' + variable, with no space after 'the'.
  • In assertPageOpened, the string should be 'The ' + this.url + 'is opened', with no space between the URL and 'is opened'.

Fixing these small but crucial details will ensure your code passes the validation checks. Keep up the great work!


✨ 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

Comment thread src/pageObject.js

};
clickOnLogo() {
return 'Click on the ' + this.header.logo;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The return string needs to match the requirement precisely. The description specifies the return value as the result of 'Click on the' + logo, which means there should be no space after the word 'the'.

Comment thread src/pageObject.js
}

clickOnCommentButton() {
return `Click on the ${this.commentButton}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Similar to the clickOnLogo method, the return string here should exactly match the requirement from the description: 'Click on the' + commentButton. This implies there should be no space after 'the'.

Comment thread src/pageObject.js
}

assertPageOpened() {
return `The ` + this.url + ' is opened';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The return string doesn't quite match the requirement. The description specifies 'The ' + url + 'is opened', which does not have a space between the URL part and the text 'is opened'.

@vadiimvooo vadiimvooo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done

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