-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Added Homepage Post Steps #9620
Added Homepage Post Steps #9620
Conversation
cy.get('[data-testid="create-post-button"]').click({ force: true }); | ||
cy.reload() | ||
homePageRedirection(); | ||
cy.waitTextPresent(announcementTitle); |
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.
Why is this global variable being used instead of the argument?
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.
We've utilized it several times in the test, so we've stored it in a variable for easy access and called it as needed., if you wan't we can remove the variable and use direct title argument
cy.waitTextPresent(announcementTitle); | ||
} | ||
|
||
const addLink = (linkTitle, linkURL, imageURL) => { |
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.
Please don't keep same name as global variable. Can cause confusion on what is being used.
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.
okay will change it, thanks!
Checklist