Skip to content

test(tree): stabilize tests#9853

Merged
driskull merged 2 commits intodevfrom
dris0000/tree-stabilize-tests
Jul 26, 2024
Merged

test(tree): stabilize tests#9853
driskull merged 2 commits intodevfrom
dris0000/tree-stabilize-tests

Conversation

@driskull
Copy link
Copy Markdown
Member

Related Issue: N/A

Summary

Try to stabilize the tree tests.

Example:

@esri/calcite-components:test:   ● calcite-tree › keyboard support › does prevent space/enter keyboard event on actions with selectionMode of none
@esri/calcite-components:test: 
@esri/calcite-components:test:     expected event "keydown" to have been called 1 times, but was called 0 time
@esri/calcite-components:test: 
@esri/calcite-components:test:       1065 |       await page.keyboard.press("Enter");
@esri/calcite-components:test:       1066 |
@esri/calcite-components:test:     > 1067 |       expect(keydownSpy).toHaveReceivedEventTimes(1);
@esri/calcite-components:test:            |                          ^
@esri/calcite-components:test:       1068 |       expect(keydownSpy.lastEvent.defaultPrevented).toBe(true);
@esri/calcite-components:test:       1069 |
@esri/calcite-components:test:       1070 |       await page.keyboard.press("Space");
@esri/calcite-components:test: 
@esri/calcite-components:test:       at Object.<anonymous> (src/components/tree/tree.e2e.ts:1067:26)
@esri/calcite-components:test: 
@esri/calcite-components:test: 
@esri/calcite-components:test: Test Suites: 1 failed, 1 skipped, 133 passed, 134 of 135 total

https://github.com/Esri/calcite-design-system/actions/runs/10085510671/job/27886423203

@driskull driskull marked this pull request as ready for review July 25, 2024 16:08
@driskull driskull added the skip visual snapshots Pull requests that do not need visual regression testing. label Jul 26, 2024
@driskull driskull requested a review from jcfranco July 26, 2024 17:13
@driskull driskull merged commit f19bfb3 into dev Jul 26, 2024
@driskull driskull deleted the dris0000/tree-stabilize-tests branch July 26, 2024 23:37
@github-actions github-actions Bot added this to the 2024-07-30 - Jul Release milestone Jul 26, 2024
benelan added a commit that referenced this pull request Jul 29, 2024
…-to-monorepo

* origin/dev:
  ci: fix env var case in workflows (#9877)
  docs(action): deprecates the compact property (#9847)
  fix(tab-title): Adjust hover styling for `bordered` Tab Title (#9867)
  chore(themed): add token CSS variable test helper (#9860)
  chore: avoid deleting untracked, non-generated files on npm run clean (#9866)
  chore(pick-list, pick-list-item, value-list-item): fix runtime deprecation messages (#9870)
  refactor: create a common resource to store debounce consts (#9829)
  test(tree): stabilize tests (#9853)
  chore(value-list-item): add runtime deprecation warning (#9863)
  chore: release next
  build(deps): update dependency composed-offset-position to v0.0.6 (#9834)
  feat(dialog): adds new dialog component and deprecates the modal component (#9751)
  chore: release next
  fix(panel, flow-item): prevent footer slots from conflicting with each other (#9856)
calcite-admin pushed a commit that referenced this pull request Jul 30, 2024
**Related Issue:** N/A

## Summary

Try to stabilize the tree tests.

Example:


```
@esri/calcite-components:test:   ● calcite-tree › keyboard support › does prevent space/enter keyboard event on actions with selectionMode of none
@esri/calcite-components:test: 
@esri/calcite-components:test:     expected event "keydown" to have been called 1 times, but was called 0 time
@esri/calcite-components:test: 
@esri/calcite-components:test:       1065 |       await page.keyboard.press("Enter");
@esri/calcite-components:test:       1066 |
@esri/calcite-components:test:     > 1067 |       expect(keydownSpy).toHaveReceivedEventTimes(1);
@esri/calcite-components:test:            |                          ^
@esri/calcite-components:test:       1068 |       expect(keydownSpy.lastEvent.defaultPrevented).toBe(true);
@esri/calcite-components:test:       1069 |
@esri/calcite-components:test:       1070 |       await page.keyboard.press("Space");
@esri/calcite-components:test: 
@esri/calcite-components:test:       at Object.<anonymous> (src/components/tree/tree.e2e.ts:1067:26)
@esri/calcite-components:test: 
@esri/calcite-components:test: 
@esri/calcite-components:test: Test Suites: 1 failed, 1 skipped, 133 passed, 134 of 135 total
```


https://github.com/Esri/calcite-design-system/actions/runs/10085510671/job/27886423203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip visual snapshots Pull requests that do not need visual regression testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants