mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(events): comment out test to show that should init fails on its own
This commit is contained in:
@@ -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');
|
||||
|
||||
});
|
||||
*/
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user