-
Notifications
You must be signed in to change notification settings - Fork 157
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
Refactor filesPage page-object for assertion management #2619
Conversation
.waitForElementVisible('@versionsList') | ||
.api.elements('xpath', this.elements.versionsList.selector, function (result) { | ||
assert.strictEqual(expectedNumber, result.value.length) | ||
isVersionsPresent: async function () { |
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.
isVersionsPresent: async function () { | |
getVersionsCount: async function () { |
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.
done!
🚀
LGTM 👍 |
.api.elements('xpath', this.elements.versionsList.selector, function (result) { | ||
assert.strictEqual(expectedNumber, result.value.length) | ||
getVersionsCount: async function () { | ||
let count |
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.
let count | |
let count = 0 |
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.
done!
🚀
this.elements.versionsList.locateStrategy, | ||
this.elements.versionsList.selector, |
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.
if possible use this.elements('@versionsList')
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.
absolutely possible!
🚀
alright just fix pending changes requests |
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.
👍
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.
LGTM 👍
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.
LGTM, please squash the commits
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.
squash before merging
1ac5d64
to
5ff7d3b
Compare
5ff7d3b
to
51cf9c0
Compare
Description
All the assertions from filesPage
page-objects
are moved torespective contexts
.Related Issue
Motivation and Context
Better Code = Life GooD
How Has This Been Tested?
CI
Checklist: