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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 360413b8af66e57c96b50f7a3d42e090570ce350ffaa9ec7d316ce5f3cffd9df
4
- data.tar.gz: d96327fc8f503da031ffb1cfe9d5dfde31551860650d0ae01a0cc5e249fa5114
3
+ metadata.gz: 3c77d2b51f74b4586420f4cab725e1cb69ff1aebdf74f9ee19b5b21375da5416
4
+ data.tar.gz: c6b819ebf5bd7db6bb50ce1d50b919dacfb01daba64a62620473ede76bdfd698
5
5
  SHA512:
6
- metadata.gz: 5350397053b9dba7747150cf2f3a85d074456ecd0afbc70ebe68175c53c7840983427d4c38daf97423e3d09136ce0db11ad9445e38dbd49dcd46f4060f59cb4a
7
- data.tar.gz: 4422d0c952be46f567154bcd58037fb66763aa44cddfc47179de84b62d335083b055ac0edf97b616674e7b5861ff2d6f18b70ca1b41cc12e2ecf22df1be1a89a
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
  })
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.26.0"
5
- VERSION = "12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown794"
5
+ VERSION = "12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown813"
6
6
  end
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.PLAY603datepickerquickpickinputpresetdropdown794
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-16 00:00:00.000000000 Z
12
+ date: 2023-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack