Skip to content

Solution#481

Open
Julia2063 wants to merge 3 commits into
mate-academy:masterfrom
Julia2063:develop
Open

Solution#481
Julia2063 wants to merge 3 commits into
mate-academy:masterfrom
Julia2063:develop

Conversation

@Julia2063

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

I am requesting changes because several string-returning methods do not match the exact concatenation format required by the task, which will cause strict automated checks to fail. In src/pageObject.js, your PageObject.clickOnLogo currently uses a template literal that produces "Click on the Conduit logo", but the requirement is to return 'Click on the' + this.header.logo with no extra space between the and the logo text [CHECKLIST ITEM #16]. Similarly, ArticlePage.clickOnCommentButton returns "Click on the [Publish comment] button", but the requirement is 'Click on the' + this.commentButton (again, no space between the and the button text) [CHECKLIST ITEM #18]. Finally, ArticlePage.assertPageOpened currently returns a string like "The <url> is opened", but the requirement is 'The ' + this.url + 'is opened', with no space between the URL and the word is [CHECKLIST ITEM #19]. Please change these three methods to use explicit string concatenation exactly as specified so the outputs match the required literals and tests can pass. Aside from these formatting issues, your class structure, inheritance, and property usage look good, so once you fix these strings you should be in great shape.


✨ 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 template literal here produces "Click on the Conduit logo" (note the space). Checklist item #16 requires the method to return 'Click on the' + logo (no extra space between the and the logo). Consider using explicit concatenation to match the exact required string: return 'Click on the' + this.header.logo;

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.

This returns "Click on the [Publish comment] button" (with a space). Checklist item #18 requires 'Click on the' + commentButton (no extra space). Use explicit concatenation to match the exact required string: return 'Click on the' + this.commentButton;

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.

This template produces "The <url> is opened" (space before is). Checklist item #19 requires 'The ' + url + 'is opened' (no space between the URL and is). Change to explicit concatenation to match the exact required string: return 'The ' + this.url + 'is opened';

@Julia2063

Copy link
Copy Markdown
Author

Це не вірно, завдання виконано у відповідності до тестів, тести вимагають саме наявності пробілів у повертаємих строках

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

@vitalii-bondarenko-ua vitalii-bondarenko-ua 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.

Looks good

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