test(events): comment out test to show that should init fails on its own

This commit is contained in:
Dan Bucholtz
2018-02-01 13:22:38 -06:00
parent 923bf5a1b8
commit 8de99092e5
2 changed files with 8 additions and 11 deletions

View File

@@ -18,13 +18,14 @@ platforms.forEach(platform => {
return page.navigate();
});
register('subscribers should receive event on or shortly after button click', async (driver, testContext) => {
/*register('subscribers should receive event on or shortly after button click', async (driver, testContext) => {
testContext.timeout(1000);
const page = new E2ETestPage(driver, platform);
await wait(300);
// go to page two
const publishButtonSelector = 'ion-button.publish.hydrated';
const publishButtonSelector = 'ion-button';
const publishButton = await getElement(driver, publishButtonSelector);
publishButton.click();
await wait(300);
@@ -36,8 +37,8 @@ platforms.forEach(platform => {
const secretTwoElement = await getElement(driver, '.secret-two');
const secretTwoText = await secretTwoElement.getText();
expect(secretTwoText).to.equal('Burrito');
});
*/
});
});

View File

@@ -8,7 +8,7 @@
<script src="/dist/ionic.js"></script>
</head>
<body onload="init()">
<body onload="runTest()">
<ion-events></ion-events>
<ion-app>
<ion-page>
@@ -50,16 +50,12 @@
span.textContent = secretTwo;
});
const publishButton = document.querySelector('ion-button .publish');
const publishButton = document.querySelector('ion-button');
publishButton.addEventListener('click', async () => {
await ionEvents.publish('secretOne', 'Taco');
await ionEvents.publish('secretTwo', 'Burrito');
ionEvents.publish('secretOne', 'Taco');
ionEvents.publish('secretTwo', 'Burrito');
});
}
function init() {
setTimeout(runTest(), 100);
}
</script>
</body>