-
Notifications
You must be signed in to change notification settings - Fork 795
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 external-imports
Also a `await $('#item-4').waitForExist();` in `test/wdio/key-reorder/cmp.test.tsx`, which was contributed in #5472, as the test seemed to be flaky on my machine. The waitForExist help to remove this flakiness.
- Loading branch information
1 parent
23b02a5
commit 8f9bed6
Showing
10 changed files
with
35 additions
and
74 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.
3 changes: 2 additions & 1 deletion
3
...karma/test-app/external-imports/cmp-a.tsx → test/wdio/external-imports/cmp-a.tsx
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
3 changes: 2 additions & 1 deletion
3
...karma/test-app/external-imports/cmp-b.tsx → test/wdio/external-imports/cmp-b.tsx
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
3 changes: 2 additions & 1 deletion
3
...karma/test-app/external-imports/cmp-c.tsx → test/wdio/external-imports/cmp-c.tsx
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 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 { Fragment, h } from '@stencil/core'; | ||
import { render } from '@wdio/browser-runner/stencil'; | ||
|
||
describe('external-imports', () => { | ||
beforeEach(async () => { | ||
render({ | ||
template: () => ( | ||
<> | ||
<external-import-a></external-import-a> | ||
<external-import-b></external-import-b> | ||
<external-import-c></external-import-c> | ||
</> | ||
) | ||
}) | ||
}); | ||
it('render all components without errors', async () => { | ||
let elm = $('external-import-a'); | ||
await expect(elm).toHaveText('Marty McFly'); | ||
|
||
const elm2 = $('external-import-b'); | ||
await expect(elm2).toHaveText('Marty McFly'); | ||
|
||
const elm3 = $('external-import-c'); | ||
await expect(elm3).toHaveText('Marty McFly'); | ||
}); | ||
}); |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...st-app/external-imports/external-store.ts → test/wdio/external-imports/external-store.ts
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 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