Skip to content
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

Merged
merged 12 commits into from
May 14, 2024

Conversation

peterSirotnak
Copy link
Contributor

No description provided.

Copy link
Collaborator

@puneet0191 puneet0191 left a comment

Choose a reason for hiding this comment

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

lovely!

@puneet0191
Copy link
Collaborator

@peterSirotnak where will they be executed?

@peterSirotnak peterSirotnak requested review from puneet0191, yurkovychv and saikumar-vs and removed request for yurkovychv and saikumar-vs March 28, 2024 12:25
@peterSirotnak
Copy link
Contributor Author

Test run in grafana pr percona/grafana#741

Copy link
Contributor

@yurkovychv yurkovychv left a 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()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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 ?

Copy link
Contributor Author

@peterSirotnak peterSirotnak Apr 11, 2024

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.

@peterSirotnak peterSirotnak merged commit 48adfdf into v3 May 14, 2024
1 of 12 checks passed
@peterSirotnak peterSirotnak deleted the PMM-12847-product-tour-automation branch May 14, 2024 08:34
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