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

Renames: issue 2957 #4879

Merged
merged 10 commits into from
Aug 6, 2019
Merged

Renames: issue 2957 #4879

merged 10 commits into from
Aug 6, 2019

Conversation

kuceb
Copy link
Contributor

@kuceb kuceb commented Jul 30, 2019

  • refactors cypress/{keyboard,mouse} utils into cy/ to manage them as stateful utils on cy.

  • decaffeinate actions/type.coffee

  • no tests needed, this is a refactor

  • waiting on Decaf simulated type fixes 2 #4906

need input:

  • rename cy.internal to cy.devices

@kuceb kuceb requested a review from brian-mann July 30, 2019 16:00
@kuceb kuceb force-pushed the renames-issue-2957 branch 2 times, most recently from e865084 to 2c7c842 Compare July 30, 2019 16:06
@kuceb kuceb changed the title Renames issue 2957 Renames: issue 2957 Jul 30, 2019
@kuceb kuceb force-pushed the renames-issue-2957 branch from 2c7c842 to ceebbb4 Compare July 30, 2019 18:05
@cypress
Copy link

cypress bot commented Jul 30, 2019



Test summary

3325 0 47 0


Run details

Project cypress
Status Passed
Commit 721f519
Started Aug 5, 2019 9:37 PM
Ended Aug 5, 2019 9:41 PM
Duration 04:20 💡
OS Linux Debian - 8.10
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@kuceb kuceb closed this Jul 30, 2019
@kuceb kuceb force-pushed the renames-issue-2957 branch from ceebbb4 to 2ee3347 Compare July 30, 2019 21:04
@kuceb kuceb reopened this Jul 30, 2019
Copy link
Member

@brian-mann brian-mann left a comment

Choose a reason for hiding this comment

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

Can you first decaf these files as a separate PR in which you do not change any logic in them? They should be 1:1 transformations, and then we can focus on the cy.internal stuff.

brian-mann
brian-mann previously approved these changes Aug 1, 2019
@brian-mann brian-mann self-requested a review August 1, 2019 22:41
@brian-mann brian-mann dismissed their stale review August 1, 2019 22:42

premature

@kuceb kuceb force-pushed the renames-issue-2957 branch from 42bd618 to 0209f3d Compare August 1, 2019 22:44
@kuceb kuceb requested a review from brian-mann August 2, 2019 15:04
@@ -4334,7 +4333,7 @@ describe('src/cy/commands/actions/type', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(2)

const allChars = _.keys(Keyboard.specialChars).concat(_.keys(Keyboard.modifierChars)).join(', ')
const allChars = _.keys(cy.devices.keyboard.specialChars).concat(_.keys(cy.devices.keyboard.modifierChars)).join(', ')
Copy link
Member

Choose a reason for hiding this comment

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

Now that I see this - these should probably be constants on the class, not the instance. approving anyway.

@brian-mann brian-mann merged commit a038e7f into develop Aug 6, 2019
grabartley pushed a commit to grabartley/cypress that referenced this pull request Oct 6, 2019
* [rename only] {keyboard,mouse}.js

* refactor keyboard/mouse into cy/

* fix cy.type for refactor

* fix e2e test error

* commands now recieve devices as separate prop

* add .history to .estlintignore

* fix linting errors

* remove passing log and devices to commands, pull devices off of cy

* fix commands.coffee


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
@emilyrohrbough emilyrohrbough deleted the renames-issue-2957 branch August 1, 2024 13:46
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.

2 participants