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

App renaming integration test #820

Merged
merged 11 commits into from
Aug 19, 2022
Merged

App renaming integration test #820

merged 11 commits into from
Aug 19, 2022

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Aug 18, 2022

  • Integration test for Fix App renaming not working #816
  • Deduplicate logic around app menu + fix accessibility issues
  • Add db backup/restore around integration tests so your dev setup doesn't get polluted

@render
Copy link

render bot commented Aug 18, 2022

@oliviertassinari oliviertassinari requested a deployment to integration-test-rename - toolpad-db PR #820 August 18, 2022 08:31 — with Render Abandoned
@Janpot Janpot marked this pull request as ready for review August 18, 2022 11:51

await page.click(`${locators.toolpadHomeAppRow(appName1)} >> [aria-label="Application menu"]`);

await page.click('[role="menuitem"]:has-text("Rename"):visible');
Copy link
Member

Choose a reason for hiding this comment

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

Should all the locators used in this test also be present in locators.ts?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, just the hacky ones that we want to reuse

<DriveFileRenameOutlineIcon />
</ListItemIcon>
<ListItemText>Rename</ListItemText>
</MenuItem>
Copy link
Member

Choose a reason for hiding this comment

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

Should we leave the accessibility issue link in there (assuming the issue persists of course)?

Copy link
Member Author

@Janpot Janpot Aug 18, 2022

Choose a reason for hiding this comment

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

I don't understand the comment. Isn't this how MenuItem is supposed to be used? If it's forcing us to do a workaround in another part of the code then I wouldn't the comment rather belong at that location?

Copy link
Member

Choose a reason for hiding this comment

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

This was intended to be a reference to the bug report which talks about how MenuItem doesn't work as a button when used with a keyboard; we can remove it since we aren't doing anything specifically to tackle it

@Janpot Janpot merged commit cfd5773 into master Aug 19, 2022
@Janpot Janpot deleted the integration-test-rename branch August 19, 2022 08:04
@renovate renovate bot mentioned this pull request Mar 10, 2023
1 task
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