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: trigger() accepts arbitrary event properties in options #3809

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

takuyahara
Copy link
Contributor

While docs say trigger() accepts arbitrary event properties in options, it is actually not allowed by TypeScript because ObjectLike is not intersected in type definition.

@CLAassistant
Copy link

CLAassistant commented Mar 23, 2019

CLA assistant check
All committers have signed the CLA.

@@ -255,3 +255,19 @@ cy.screenshot('example', {
log: true,
blackout: []
})

namespace CypressTriggerTests {
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you for adding a type test

Copy link
Contributor

@bahmutov bahmutov 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, has test

@bahmutov bahmutov merged commit e2e4542 into cypress-io:develop Mar 26, 2019
laurinenas pushed a commit to laurinenas/cypress that referenced this pull request Apr 28, 2019
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 17, 2019

Released in 3.3.0.

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.

None yet

3 participants