playbook_ui 12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown794 → 12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown813
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +40 -0
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c77d2b51f74b4586420f4cab725e1cb69ff1aebdf74f9ee19b5b21375da5416
|
4
|
+
data.tar.gz: c6b819ebf5bd7db6bb50ce1d50b919dacfb01daba64a62620473ede76bdfd698
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3e9cc9de81ee79ba84c2ccb367f9715d5a1840e9dbde79965b8ec2f7c213bf40e6595ab367bc1cfe3609803197181aea088a6dd97916559c0a2c348ecd5a443
|
7
|
+
data.tar.gz: e4c60566d522fb363c5da6615ee40ad467a1d86041360b3d5b4390a613dfdfd29c13678d31659fad8e4e577bfe6086d55c8c641fdb4f61770548e4f9318ee276
|
@@ -196,6 +196,46 @@ describe('DatePicker Kit', () => {
|
|
196
196
|
}),
|
197
197
|
)
|
198
198
|
|
199
|
+
await waitFor(() => {
|
200
|
+
expect(input).toHaveValue(moment().startOf('year').format('MM/DD/YYYY') + " → " + moment().endOf('year').format('MM/DD/YYYY'))
|
201
|
+
})
|
202
|
+
|
203
|
+
})
|
204
|
+
test('shows DatePicker QuickPick ranges ending today', async () => {
|
205
|
+
const testId = 'datepicker-quick-pick-ends-today'
|
206
|
+
render(
|
207
|
+
<DatePicker
|
208
|
+
allowInput
|
209
|
+
data={{ testid: testId }}
|
210
|
+
mode="range"
|
211
|
+
pickerId="date-picker-quick-pick"
|
212
|
+
placeholder="mm/dd/yyyy → mm/dd/yyyy"
|
213
|
+
selectionType="quickpick"
|
214
|
+
thisRangesEndToday
|
215
|
+
/>
|
216
|
+
)
|
217
|
+
|
218
|
+
const kit = screen.getByTestId(testId)
|
219
|
+
const input = within(kit).getByPlaceholderText('mm/dd/yyyy → mm/dd/yyyy')
|
220
|
+
|
221
|
+
fireEvent(
|
222
|
+
input,
|
223
|
+
new MouseEvent('click', {
|
224
|
+
bubbles: true,
|
225
|
+
cancelable: true,
|
226
|
+
}),
|
227
|
+
)
|
228
|
+
|
229
|
+
const thisYear = within(kit).getByText('This year')
|
230
|
+
|
231
|
+
fireEvent(
|
232
|
+
thisYear,
|
233
|
+
new MouseEvent('click', {
|
234
|
+
bubbles: true,
|
235
|
+
cancelable: true,
|
236
|
+
}),
|
237
|
+
)
|
238
|
+
|
199
239
|
await waitFor(() => {
|
200
240
|
expect(input).toHaveValue(moment().startOf('year').format('MM/DD/YYYY') + " → " + moment().format('MM/DD/YYYY'))
|
201
241
|
})
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.26.0.pre.alpha.
|
4
|
+
version: 12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown813
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-06-
|
12
|
+
date: 2023-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|