-
Notifications
You must be signed in to change notification settings - Fork 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
PMM-12847 Grafana 10 Product tour automation #765
Conversation
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.
lovely!
@peterSirotnak where will they be executed? |
Test run in grafana pr percona/grafana#741 |
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.
Looks good. Just a general suggestion
} | ||
|
||
async verifyProductTourSteps() { | ||
for await (const [index, headerText] of this.productTourCategories.entries()) { |
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.
for await (const [index, headerText] of this.productTourCategories.entries()) { | |
async verifyProductTourSteps() { | |
const lastStepHeaderText = this.productTourCategories[this.productTourCategories.length - 1]; | |
for (const headerText of this.productTourCategories) { | |
I.waitForElement(this.tourStepHeader(headerText), 10); | |
if (headerText === lastStepHeaderText) { | |
I.dontSeeElement(this.nextStepButton); | |
I.click(this.tourDoneButton); | |
} else { | |
I.dontSeeElement(this.tourDoneButton); | |
I.click(this.nextStepButton); | |
} | |
} | |
} |
it adds extra verification and I believe improves readability. What do you think @peterSirotnak ?
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.
I like that is adds another level of verification but I do not think it is needed Its hardly possible to both buttons to be visible and for me it does not look more readable.
No description provided.