-
Notifications
You must be signed in to change notification settings - Fork 0
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
#9 #12
#9 #12
Changes from 1 commit
28c4711
74782fc
c2a9295
08a5e67
01f181f
e4dafdf
1a345b1
5698ae1
6b10bca
8564fa4
9f3ffc4
4f7eb0a
e3e9b5b
227def1
43e59cc
27deb8b
bf72ef1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
'use strict' | ||
|
||
const fs = require('fs'); | ||
const files = fs.readdirSync('./src/steps'); | ||
const fs = require('fs') | ||
const files = fs.readdirSync('./src/steps') | ||
|
||
files.forEach((f) => { | ||
const path = `./src/steps/${f}` | ||
const fileSteps = require(path); | ||
const fileSteps = require(path) | ||
|
||
if (typeof fileSteps === 'function') { | ||
fileSteps.apply(this); | ||
fileSteps.apply(this) | ||
} | ||
}); | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
'use strict' | ||
|
||
const { defineSupportCode } = require('cucumber'); | ||
const { defineSupportCode } = require('cucumber') | ||
const { pageObject, getPageObject } = require('../helpers/objects.processor') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets try to use no semicolons. |
||
const { _r } = require('../helpers/utils') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
|
@@ -16,8 +16,8 @@ module.exports = function () { | |
*/ | ||
const locator = getPageObject(object) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets try to use no semicolons. |
||
|
||
browser.$(locator).waitForExist(); | ||
}); | ||
browser.$(locator).waitForExist() | ||
}) | ||
|
||
}); | ||
}) | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets try to use no semicolons. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
'use strict'; | ||
'use strict' | ||
let e = {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets try to use no semicolons. |
||
|
||
e.txtHeader = '//*[@id="header"]'; | ||
e.txtHeader = '//*[@id="header"]' | ||
|
||
module.exports = e | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets try to use no semicolons. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
const { expect } = require('chai') | ||
|
||
|
@@ -39,18 +39,18 @@ describe('injectInto', () => { | |
|
||
data.forEach((d) => { | ||
it(`should get "${d.result}" string from "${d.locator}" and "${d.injection}" injection`, () => { | ||
expect(injectInto(d.locator, d.injection)).to.be.equals(d.result); | ||
}); | ||
}); | ||
}); | ||
expect(injectInto(d.locator, d.injection)).to.be.equals(d.result) | ||
}) | ||
}) | ||
}) | ||
|
||
describe('getPageObject', () => { | ||
const data = [ | ||
{ | ||
step: 'When I click object from main page', | ||
regExp: _r(`When I click ${pageObject}`), | ||
result: `//div[@id='${realId}' and not(ancestor-or-self::*[contains(@style,"visibility: hidden;") ` + | ||
'or contains(@style,"display: none;") or contains(@class,"x-hide-offsets")])]' | ||
result: `//div[@id='${realId}' and not(ancestor-or-self::*[contains(@style,"visibility: hidden") ` + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not remove semicolons from CSS |
||
'or contains(@style,"display: none") or contains(@class,"x-hide-offsets")])]' | ||
} | ||
] | ||
|
||
|
@@ -66,9 +66,9 @@ describe('getPageObject', () => { | |
|
||
expect(pageObjectVal).to.be.equals(result) | ||
next() | ||
}); | ||
}); | ||
}); | ||
}) | ||
}) | ||
}) | ||
|
||
describe('getDictionaryObject', () => { | ||
const data = [ | ||
|
@@ -96,6 +96,6 @@ describe('getDictionaryObject', () => { | |
|
||
expect(dictionaryObjectVal).to.be.equals(result) | ||
next() | ||
}); | ||
}); | ||
}); | ||
}) | ||
}) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not remove semicolons from CSS
"visibility: hidden;"