diff --git a/components/checkbox/README.md b/components/checkbox/README.md
index 81f2209a..3c2ba304 100644
--- a/components/checkbox/README.md
+++ b/components/checkbox/README.md
@@ -96,7 +96,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-checkbox use cases
diff --git a/components/combobox/README.md b/components/combobox/README.md
index 707b975a..70687c20 100644
--- a/components/combobox/README.md
+++ b/components/combobox/README.md
@@ -100,10 +100,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
-
-
-
+
+
+
+
## auro-combobox use cases
diff --git a/components/counter/README.md b/components/counter/README.md
index ae5123fd..02a4e469 100644
--- a/components/counter/README.md
+++ b/components/counter/README.md
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-counter use cases
diff --git a/components/datepicker/README.md b/components/datepicker/README.md
index 8cf42da2..814f372f 100644
--- a/components/datepicker/README.md
+++ b/components/datepicker/README.md
@@ -93,10 +93,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
-
-
-
+
+
+
+
## auro-datepicker use cases
diff --git a/components/dropdown/README.md b/components/dropdown/README.md
index 2a1a9c7b..0c2de53d 100644
--- a/components/dropdown/README.md
+++ b/components/dropdown/README.md
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-dropdown use cases
diff --git a/components/form/README.md b/components/form/README.md
index ed5293e8..efda5378 100644
--- a/components/form/README.md
+++ b/components/form/README.md
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-form use cases
diff --git a/components/input/README.md b/components/input/README.md
index 191d5d32..345ac7ab 100644
--- a/components/input/README.md
+++ b/components/input/README.md
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-input use cases
diff --git a/components/menu/README.md b/components/menu/README.md
index 733a7934..6662df6c 100644
--- a/components/menu/README.md
+++ b/components/menu/README.md
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-menu use cases
diff --git a/components/radio/README.md b/components/radio/README.md
index cc77b552..08db65ca 100644
--- a/components/radio/README.md
+++ b/components/radio/README.md
@@ -90,7 +90,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
+
## auro-radio use cases
diff --git a/components/select/README.md b/components/select/README.md
index d9e0bef1..15e815f6 100644
--- a/components/select/README.md
+++ b/components/select/README.md
@@ -99,9 +99,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
-
-
-
+
+
+
## auro-select use cases
diff --git a/components/select/test/auro-select.test.js b/components/select/test/auro-select.test.js
index d938e191..feb3aee9 100644
--- a/components/select/test/auro-select.test.js
+++ b/components/select/test/auro-select.test.js
@@ -102,7 +102,7 @@ describe('auro-select', () => {
await expect(el.optionSelected).to.be.equal(selectedOptions[0]);
});
- it('make invalid selection programmatically results in error ui', async () => {
+ it('making invalid selection programmatically results in resetting of component', async () => {
const el = await presetValueFixture();
await expect(el.value).to.be.equal('price');
@@ -111,12 +111,8 @@ describe('auro-select', () => {
await elementUpdated(el);
- const dropdown = el.shadowRoot.querySelector('[auro-dropdown]');
- const triggerContentHTML = dropdown.querySelector('#triggerFocus').innerHTML;
-
await expect(el.optionSelected).to.be.equal(undefined);
- await expect(triggerContentHTML).to.contain(el.placeholder);
- await expect(el.getAttribute('validity')).to.equal(undefined);
+ await expect(el.hasAttribute('validity')).to.be.false;
});
it('reset selection value programmatically', async () => {
@@ -159,7 +155,8 @@ describe('auro-select', () => {
it('reset method clears the value and validity state', async () => {
const el = await presetValueFixture();
- const presetOption = el.shadowRoot.querySelector('#presetOption');
+ const dropdown = el.shadowRoot.querySelector('[auro-dropdown]');
+ const presetOption = dropdown.bibContent.querySelector('#presetOption');
await expect(el.value).to.be.equal('price');
await expect(el.optionSelected).to.be.equal(presetOption);
diff --git a/package-lock.json b/package-lock.json
index 99c0a364..83167694 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@aurodesignsystem/auro-formkit",
- "version": "2.0.0-beta.10",
+ "version": "2.0.0-beta.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@aurodesignsystem/auro-formkit",
- "version": "2.0.0-beta.10",
+ "version": "2.0.0-beta.12",
"hasInstallScript": true,
"license": "Apache-2.0",
"workspaces": [
diff --git a/packages/config/src/web-test-runner.config.mjs b/packages/config/src/web-test-runner.config.mjs
index 4f6f1bab..e53aa056 100644
--- a/packages/config/src/web-test-runner.config.mjs
+++ b/packages/config/src/web-test-runner.config.mjs
@@ -1,4 +1,5 @@
export default {
+ rootDir: '../../',
files: [
'test/**/*.test.js',
'!**/node_modules/**'
@@ -8,6 +9,8 @@ export default {
extensions: ['.js', '.css']
},
coverageConfig: {
+ include: ['src/**/*.js'],
+ exclude: ['**/node_modules/**'],
threshold: {
statements: 70,
branches: 70,
@@ -15,4 +18,4 @@ export default {
lines: 70
}
}
- };
\ No newline at end of file
+};