Skip to content

Commit

Permalink
Adding spaces between command name words.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Dec 4, 2019
1 parent cea4fe8 commit 996f886
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/driver/src/cy/commands/actions/click.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const formatMouseEvents = (events) => {
module.exports = (Commands, Cypress, cy, state, config) => {
const { mouse } = cy.devices

const mouseAction = (eventName, { subject, positionOrX, y, options, onReady, onTable, defaultOptions }) => {
const mouseAction = (eventName, { subject, positionOrX, y, options, onReady, onTable, defaultOptions, displayName }) => {
let position
let x

Expand Down Expand Up @@ -80,6 +80,7 @@ module.exports = (Commands, Cypress, cy, state, config) => {

opts._log = Cypress.log({
message,
displayName,
options,
$el,
})
Expand Down Expand Up @@ -211,6 +212,7 @@ module.exports = (Commands, Cypress, cy, state, config) => {
subject,
options,
positionOrX,
displayName: 'click',
onReady (fromElViewport, forceEl) {
const clickEvents = mouse.click(fromElViewport, forceEl)

Expand Down Expand Up @@ -242,6 +244,7 @@ module.exports = (Commands, Cypress, cy, state, config) => {
// TODO: 4.0 make this false by default
defaultOptions: { multiple: true },
positionOrX,
displayName: 'double click',
onReady (fromElViewport, forceEl) {
const { clickEvents1, clickEvents2, dblclick } = mouse.dblclick(fromElViewport, forceEl)

Expand Down Expand Up @@ -276,6 +279,7 @@ module.exports = (Commands, Cypress, cy, state, config) => {
subject,
options,
positionOrX,
displayName: 'right click',
onReady (fromElViewport, forceEl) {
const { clickEvents, contextmenuEvent } = mouse.rightclick(fromElViewport, forceEl)

Expand Down
2 changes: 2 additions & 0 deletions packages/driver/src/cy/commands/actions/scroll.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->
if opts.log
log = {
$el: opts.$el
displayName: 'scroll into view'
options: options
consoleProps: ->
obj = {
Expand Down Expand Up @@ -232,6 +233,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->

log = {
message: messageArgs.join(", "),
displayName: 'scroll to'
options: options
consoleProps: ->
## merge into consoleProps without mutating it
Expand Down
2 changes: 2 additions & 0 deletions packages/driver/src/cy/commands/files.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->
if opts.log
opts._log = Cypress.log({
message: file
displayName: 'read file'
options: options
consoleProps: -> consoleProps
})
Expand Down Expand Up @@ -79,6 +80,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->
if opts.log
opts._log = Cypress.log({
message: fileName
displayName: 'write file'
options: options
consoleProps: -> consoleProps
})
Expand Down
1 change: 1 addition & 0 deletions packages/driver/src/cy/commands/traversals.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->
opts._log = Cypress.log
message: getSelector()
options: options
displayName: traversal.replace(/([A-Z])/, " $1")
consoleProps: -> consoleProps

setEl = ($el) ->
Expand Down

0 comments on commit 996f886

Please sign in to comment.