Skip to content

Commit

Permalink
Merge 1c6dc13 into 1e56ef2
Browse files Browse the repository at this point in the history
  • Loading branch information
renanrbs committed Nov 7, 2018
2 parents 1e56ef2 + 1c6dc13 commit 5ea2fa6
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
const component = 'sling-web-component-button';
const customCode = false;
module.exports = {

main: (browser) => {
browser.url('http://localhost:8080/')
.saveScreenshot('./reports/button-start.png')
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}-start.png`)
.elements('css selector', 'sling-button', (buttons) => {
buttons.value.forEach((button) => {
browser.elementIdClick(button.ELEMENT);
});
})
.saveScreenshot('./reports/button-end.png')
.saveScreenshot(`./reports/${component}/${component}-end.png`)
.assert.containsText('#counter', '110')
.end();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}.png`)
.end();
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const component = 'sling-web-component-tooptip';
const component = 'sling-web-component-tooltip';
const customCode = false;

module.exports = {
main: (browser) => {
browser.url(`http://localhost:8777/packages/${component}/${customCode ? 'public/regression' : 'public'}/index.html`)
browser.url(`http://localhost:8777/${customCode ? 'regression' : ''}/index.html`)
.saveScreenshot(`./reports/${component}/${component}-no-hover.png`)
.moveToElement('sling-tooltip', 0, 0)
.saveScreenshot(`./reports/${component}/${component}-hover.png`)
Expand Down

0 comments on commit 5ea2fa6

Please sign in to comment.