-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(test): migrate
event-listen-capturer
(#5494)
* chore(test): migrate event-listen-capturer * rename test file * migrate test
- Loading branch information
1 parent
5c5120e
commit 52fd257
Showing
5 changed files
with
26 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { h } from '@stencil/core'; | ||
import { render } from '@wdio/browser-runner/stencil'; | ||
|
||
describe('event-listener-capture', function () { | ||
const eventListenerCaptureCmp = () => $('event-listener-capture'); | ||
|
||
beforeEach(() => { | ||
render({ | ||
template: () => <event-listener-capture></event-listener-capture>, | ||
}); | ||
}); | ||
|
||
it('should render', async () => { | ||
await expect(eventListenerCaptureCmp()).toBePresent(); | ||
}); | ||
|
||
it('should increment counter on click', async () => { | ||
const counter = $('#counter'); | ||
await expect(counter).toHaveText('0'); | ||
|
||
const p = eventListenerCaptureCmp().$('#incrementer'); | ||
await expect(p).toBePresent(); | ||
await p.click(); | ||
await expect(counter).toHaveText('1'); | ||
}); | ||
}); |
File renamed without changes.