Skip to content

Commit

Permalink
feat: add web component SSR + Twig Nightwatch.js test
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Mar 4, 2019
1 parent d728371 commit 6def3e7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs-site/__tests__/server-side-rendering.e2e.js
@@ -0,0 +1,17 @@
module.exports = {
'Pattern Lab: Confirm SSR Working': function(browser) {
const { testingUrl } = browser.globals;
console.log(`global browser url: ${testingUrl}`);
browser
.url(
`${testingUrl}/pattern-lab/patterns/02-components-button-70-server-side-rendering--twig-only/02-components-button-70-server-side-rendering--twig-only.html`,
)
.waitForElementVisible('bolt-button', 3000)
.assert.elementPresent('.c-bolt-button')
.saveScreenshot(
`screenshots/pattern-lab/web-component-ssr--${browser.currentEnv ||
'chrome'}.png`,
)
.end();
},
};

0 comments on commit 6def3e7

Please sign in to comment.