Skip to content

Commit

Permalink
Merge f9b31d6 into 9f1ca5e
Browse files Browse the repository at this point in the history
  • Loading branch information
renanrbs committed Nov 8, 2018
2 parents 9f1ca5e + f9b31d6 commit 3787d0f
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 3787d0f

Please sign in to comment.