@ordergroove/offers 2.48.2-alpha-PR-1444-2.310 → 2.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ordergroove/offers",
|
|
3
|
-
"version": "2.48.2
|
|
3
|
+
"version": "2.48.2",
|
|
4
4
|
"description": "offer state component",
|
|
5
5
|
"author": "Eugenio Lattanzio <eugenio63@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ordergroove/plush-toys#readme",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"throttle-debounce": "^2.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@ordergroove/offers-templates": "^0.10.1
|
|
49
|
+
"@ordergroove/offers-templates": "^0.10.1",
|
|
50
50
|
"@types/lodash.memoize": "^4.1.9"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "39b8725116f6a8fd37aa170bff3b57bb896f0c21"
|
|
53
53
|
}
|
|
@@ -127,7 +127,7 @@ export class SelectFrequency extends withChildOptions(FrequencyStatus) {
|
|
|
127
127
|
|
|
128
128
|
return html`
|
|
129
129
|
<og-select
|
|
130
|
-
.ariaLabel="Delivery frequency"
|
|
130
|
+
.ariaLabel="${'Delivery frequency'}"
|
|
131
131
|
.options="${options}"
|
|
132
132
|
.selected="${this.currentFrequency}"
|
|
133
133
|
.onChange="${({ target: { value } }) => {
|
|
@@ -138,6 +138,16 @@ describe('SelectFrequency', () => {
|
|
|
138
138
|
expect(element.currentFrequency).toBe('yum first frequency');
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
+
it('should set aria-label on the underlying select element', async () => {
|
|
142
|
+
const element = document.createElement(TAG_NAME_UNDER_TEST);
|
|
143
|
+
element.innerHTML = `<option value="2w">2 weeks</option>`;
|
|
144
|
+
document.body.appendChild(element);
|
|
145
|
+
await element.updateComplete;
|
|
146
|
+
await element.shadowRoot.querySelector('og-select').updateComplete;
|
|
147
|
+
const select = element.shadowRoot.querySelector('og-select').shadowRoot.querySelector('select');
|
|
148
|
+
expect(select.getAttribute('aria-label')).toEqual('Delivery frequency');
|
|
149
|
+
});
|
|
150
|
+
|
|
141
151
|
it('should return set default frequency given no options', () => {
|
|
142
152
|
const selectFrequency = new SelectFrequency();
|
|
143
153
|
selectFrequency.defaultFrequency = 'yum set defaault frequency';
|