Commit Graph

16 Commits

Author SHA1 Message Date
Tobias Åström
32d600e88b chore: convert rendering tests to es6 (#1658)
* chore: convert rendering tests to es6

* chore: fix cjs config usage

* chore: fix cjs config usage

* chore: fix verify translations

* chore: babel and jest es6

* chore: aw cjs

* chore: aw cjs

* chore: aw cjs

* chore: fix path
2024-12-30 14:40:28 +01:00
Johan Lahti
c2ffdc8479 fix(listbox): add removed autoConfirm option (#1496)
* test: add rendering test for auto confirm

* fix: add back auto confirm

* test: move autoconfirm

* test: upload new snapshot
2024-02-26 09:52:17 +01:00
Tobias Åström
e7700876f2 fix: dark theme for listbox (#1449)
* chore: fix dark theme for listbox

* chore: add test

* chore: listbox search bg

* chore: add baseline

* chore: fix tests

* chore: use alpha shift for search bg

* chore: baseline
2024-01-08 14:31:43 +01:00
Johan Lahti
a60388e09c feat(listbox): expose and inject background image (#1407)
* feat: expose background image and inject it

* fix: new import path

* refactor: set color on other components and search
  test: rendering test for background image

* test: uploading snapshot for bg image

* refactor: use content color for search text

* fix: skip custom divider color for now

* test: unit tests for background style

* fix: prevent skewed palette color

* fix: border colors

* test: update snapshots

* refactor: handle bg and search color better

* test: update snapshot

* refactor: apply font styles too

* fix: cut off title

* fix: make place for italic font style in header

* test: update snapshots for padding right

* test: snapshot update

* refactor: improve font style fallbacks and fix
  centered headers

* test: snapshots centered headers and ignore files
  with certain paths

* test: update snapshot

* test: snapshot

* test: fix rendering test
2023-11-22 10:54:59 +01:00
Johan Lahti
9d564d1516 feat: auto confirm selections only on click outside listbox (#1355)
* feat: implement auto confirm

* refactor: auto confirm only on click outside

* refactor: do not render at all if autoConfirm

* refactor: smaller min height and use constants

* test: fix selector

* fix: use correct attribute key

* test: use another testid

* fix: increase minHeight for small grid listboxes

* fix: prevent cut listboxes
2023-10-03 09:34:08 +02:00
Johan Lahti
476b75327c test(listbox): keyboard navigation rendering tests (#1220)
* refactor: compensate for checkboxes in item width

* test: render keyboard navigation

* fix: revert mashup change

* test: upload img

* fix: rm unncessary headless

* test: update snapshot
2023-04-14 16:15:47 +02:00
Johan Lahti
7881c72276 fix: grid mode calculations (#1150)
* refactor: conditionally render histogram

* fix(#145, #144, #127): adapt code

* fix: itemSize -> itemHeight

* fix(#146): fall back to auto mode in col case

* fix: add padding when icon is not shown

* test: adapt unit tests

* refactor: modularise a bit and fix issues

* test: update snapshot

* test: wait until

* Update apis/nucleus/src/components/listbox/assets/get-list-sizes/column-mode.js

Co-authored-by: Tobias Linsefors <T-Wizard@users.noreply.github.com>

* refactor: simplify (skip recursive call)

---------

Co-authored-by: Tobias Linsefors <T-Wizard@users.noreply.github.com>
2023-03-16 11:28:14 +01:00
Daniel Sjöstrand
7a3218ad1b feat(Listbox): detached toolbar (#1123)
* feat: detach toolbar

* test: added tests. refactor

* test: update baseline

* fix: fixtureFile, add baseline

* test: update baseline

* fix: merge conflict

* test: update baseline

* test: wait

* test: update baseline

* test: update baseline

* refactor: pr comments

* fix: remove event.stopPropagation

* feat: revert popover position

* fix: update test

* test: update baseline
2023-03-15 16:31:27 +01:00
Tobias Åström
a105b5f549 chore!: test update to render root with react 18 (#1100)
* chore: test update to render root with react 18

* fix: fix double click on checkbox

* chore: update nebulaapp tests

* chore: update nebulaapp tests again

* chore: fix listbox checkbox tests

* chore: fix merge changes

* chore: fix tests

* fix: merge issue

* fix: merge issue

* chore: add missing prop
2023-03-13 12:29:53 +01:00
Christian Veinfors
6df77be206 test: add listbox fixture rendering-tests (#1132) 2023-03-13 08:32:01 +01:00
Daniel Sjöstrand
1ebdb00d7d feat(Listbox): keyboard nav on hover (#1101)
* feat: keyboard navigation on hover

* test: update existing tests

* test: add unit and render test. fix pr comments

* test: update baseline, add keyboard scroll baseline

* test: hide caret

* test: update baseline, except listbox-key-scroll

* test: force hide caret

* test: update baseline
2023-03-06 09:32:27 +01:00
Daniel Sjöstrand
db493de0ad feat(Listbox): hide toolbar (#1080)
* feat: hide toolbar when title is empty

* feat: hide/show toolbar from layout props

* test: add title to layout. add no toolbar test

* test: update baseline

* test: update baseline
2023-02-15 14:01:41 +01:00
Johan Lahti
31771fffe4 test: render search (#1046)
* test: render search

* test: add snapshot

* refactor: clean up unneeded artifacts from the past
2023-01-12 08:39:01 +01:00
Johan Lahti
448393868d refactor: allow checkboxes as option and add rendering tests for checkboxes enabled (#1045)
* refactor: allow checkboxes as option
  test: enable rendering test for checkboxes

* build: yarn lock

* chore: rm playwright

* test: update baseline

* chore: rm playwrgith from resolutions

* chore: put it back again

* chore: test without res again

* chore: and add resolutions back again
2023-01-10 14:56:38 +01:00
Per Nylander
0b026f7c4b test: rendering test goes playwrigt (#1031)
* test: rendering test goes playwrigt

* test: update cci

* test: update cci

* test: update cci

* test: more playwright

* test: update config

* test: update config

* test: update config

* test: update baseline
2022-12-19 08:56:00 +01:00
Johan Lahti
e2208c6081 chore: expand rendering test capabilities (#1011)
* test: implement rendering tests with listbox

* test: keep headless

* chore: revert changing puppeteer version

* fix: clean up
2022-11-25 12:57:47 +01:00