-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
868c5ab
commit 0995988
Showing
5 changed files
with
210 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,12 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["cosmoz-collapse renders opened"] = | ||
`<cosmoz-collapse opened=""> | ||
<p> | ||
Lore ipsum | ||
</p> | ||
</cosmoz-collapse> | ||
`; | ||
/* end snapshot cosmoz-collapse renders opened */ | ||
|
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,11 @@ | ||
import '../src/cosmoz-collapse'; | ||
import { expect, html, fixture } from '@open-wc/testing'; | ||
|
||
describe('cosmoz-collapse', () => { | ||
it('renders opened', async () => { | ||
const el = await fixture( | ||
html`<cosmoz-collapse opened><p>Lore ipsum</p></cosmoz-collapse>`, | ||
); | ||
await expect(el).dom.to.equalSnapshot(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,29 +1,16 @@ | ||
import { | ||
chromeLauncher, defaultReporter | ||
} from '@web/test-runner'; | ||
import { seleniumLauncher } from '@web/test-runner-selenium'; | ||
import webdriver from 'selenium-webdriver'; | ||
import firefox from 'selenium-webdriver/firefox.js'; | ||
import cfg from '@neovici/cfg/web/test-runner.mjs'; | ||
|
||
export default { | ||
nodeResolve: true, | ||
...cfg, | ||
coverageConfig: { | ||
reportDir: 'coverage', | ||
threshold: { | ||
statements: 70, | ||
branches: 70, | ||
statements: 65, | ||
branches: 65, | ||
functions: 50, | ||
lines: 70 | ||
} | ||
lines: 65, | ||
}, | ||
}, | ||
files: [ | ||
'**!(node_modules)/*.test.js' | ||
], | ||
browsers: [ | ||
chromeLauncher(), | ||
seleniumLauncher({ | ||
driverBuilder: new webdriver.Builder().forBrowser('firefox').setFirefoxOptions(new firefox.Options().headless()) | ||
}) | ||
] | ||
|
||
testFramework: { config: { ui: 'bdd' } }, | ||
}; |