Skip to content

Commit 696ba74

Browse files
chore: fix contributor workflow for @packages/app flow component testing (#31458)
* Update CHANGELOG.md * remove work around for contributors and see what fails * Update vite.config.mjs to further optimize CT dependencies under test to prevent a dev server reload * Update vite.config.mjs * Update SelectorPlayground.cy.tsx * Update CHANGELOG.md
1 parent 83e0d3c commit 696ba74

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.circleci/workflows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ commands:
811811
if [[ <<parameters.type>> == 'ct' ]]; then
812812
# component tests are located side by side with the source codes.
813813
# for the app component tests, ignore specs that are known to cause failures on contributor PRs (see https://discuss.circleci.com/t/how-to-exclude-certain-files-from-circleci-test-globbing/41028)
814-
TESTFILES=$(find src -regextype posix-extended -name '*.cy.*' -not -regex '.*(FileMatch|PromoAction|SelectorPlayground|useDurationFormat|useTestingType|SpecPatterns).cy.*' | circleci tests split --total=$CIRCLE_NODE_TOTAL)
814+
TESTFILES=$(find src -regextype posix-extended -name '*.cy.*' | circleci tests split --total=$CIRCLE_NODE_TOTAL)
815815
else
816816
GLOB="cypress/e2e/**/*cy.*"
817817
TESTFILES=$(circleci tests glob "$GLOB" | circleci tests split --total=$CIRCLE_NODE_TOTAL)

packages/app/src/runner/selector-playground/SelectorPlayground.cy.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ describe('SelectorPlayground', () => {
6868
selectorPlaygroundStore.setNumElements(0)
6969

7070
mountSelectorPlayground()
71+
cy.then(() => selectorPlaygroundStore.setValidity(true))
72+
7173
cy.get('[data-cy="playground-num-elements"]').contains('No matches')
7274

7375
cy.then(() => selectorPlaygroundStore.setNumElements(1))

packages/app/vite.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ const config = makeConfig({
1919
'events',
2020
'@popperjs/core',
2121
'@opentelemetry/*',
22+
'@headlessui/vue',
23+
'@cypress-design/vue-icon',
24+
'@cypress-design/vue-statusicon',
25+
'human-interval',
26+
'floating-vue',
27+
'dayjs',
28+
'dayjs/plugin/relativeTime',
29+
'dayjs/plugin/duration',
30+
'dayjs/plugin/customParseFormat',
31+
'dayjs/plugin/utc',
32+
'markdown-it',
33+
'@toycode/markdown-it-class',
34+
'@cypress-design/vue-tabs',
35+
'gravatar',
36+
'@opentelemetry/sdk-trace-web',
37+
'@opentelemetry/resources',
38+
'@opentelemetry/sdk-trace-base',
39+
'@opentelemetry/api',
40+
'@opentelemetry/semantic-conventions',
41+
'@opentelemetry/exporter-trace-otlp-http',
42+
'@opentelemetry/core',
2243
],
2344
esbuildOptions: {
2445
target: 'ES2022',

0 commit comments

Comments
 (0)