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

Fix typing issues that appeared with cypress v9.1 upgrade #1791

Merged
merged 12 commits into from
Dec 1, 2021

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Nov 30, 2021

If you open packages/files-ui/cypress/support/commands.ts in dev, you'll see red squiggles, although the tests run without issue.

This PR fixes those typing issues.

@render
Copy link

render bot commented Nov 30, 2021

@render
Copy link

render bot commented Nov 30, 2021

@github-actions github-actions bot added the Type: Maintenance Added to issues and PRs when a change is for repository maintenance , such as CI or linter changes. label Nov 30, 2021
@Tbaut Tbaut added the Status: Review Needed 👀 Added to PRs when they need more review label Nov 30, 2021
@Tbaut Tbaut enabled auto-merge (squash) December 1, 2021 19:32
@asnaith
Copy link
Member

asnaith commented Dec 1, 2021

Added some very minor suggestions just for consistency, I've been putting the element type at the beginning of the string for identifiers (otherwise would have approved in advance but saw that auto-merge was on) :)

Co-authored-by: Andrew Snaith <asnaith@users.noreply.github.com>
Comment on lines 13 to 14
loginPasswordButton: () => cy.get("[data-cy=login-password-button]", { timeout: 20000 }),
loginPasswordInput: () => cy.get("[data-cy=login-password-input]"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can change these 2 in another PR @asnaith or feel free to commit here directly before approving so that it's done.

Copy link
Member

@asnaith asnaith Dec 1, 2021

Choose a reason for hiding this comment

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

Yeah, think a separate house-keeping PR is best 👍

signInExplainerContinueButton: () => cy.get("[data-cy=button-sign-in-explainer-continue]", { timeout: 20000 }),
signInSetupPasswordInput: () => cy.get("[data-cy=input-sign-in-password]"),
signInSetupPasswordVerificationInput: () => cy.get("[data-cy=input-sign-in-password-verification]"),
signInSetupPasswordSubmitButton: () => cy.get("[data-cy=button-sign-in-password]"),

// save browser section elements
saveBrowserButton: () => cy.get("[data-cy=save-browser-button]"),
Copy link
Collaborator Author

@Tbaut Tbaut Dec 1, 2021

Choose a reason for hiding this comment

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

also those 2

@Tbaut Tbaut merged commit 44fe032 into dev Dec 1, 2021
@Tbaut Tbaut deleted the mnt/tbaut-fix-type-issues-cypressv9-1 branch December 1, 2021 21:13
@FSM1 FSM1 mentioned this pull request Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed 👀 Added to PRs when they need more review Type: Maintenance Added to issues and PRs when a change is for repository maintenance , such as CI or linter changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants