现在你已经知道了我们的组件的使用,那么你可以看看 #packages/components/combobox 和…
- User
现在你已经知道了我们的组件的使用,那么你可以看看 #packages/components/combobox 和 #packages/components/color-picker 帮我给 #packages/components/steps 编写一下全量的测试案例吗
Assistant
Planning test case developmentGathering repository structureChecking test locations in componentsInspecting test directoryDeciding how to read file contentAdding color-picker testsReviewing test filesPreparing to test steps componentInvestigating front-end hooking examplesChecking examples directory structureChecking test render sourceInvestigating test hooking setupLocating state machine filePreparing to explore testing utilitiesSearching for testHook definitionChecking for shared test directoryChecking if index read is necessaryChecking hooking functions in class.tsReviewing hook functions in hooks.tsInvestigating test selectors for StepsChecking type definitions in props.tsPlanning tests for steps componentExamining steps controls in shared fileAnalyzing test data and hooksSearching for stepsData definitionInvestigating control test IDsChecking directory for filenamesSearching for Controls componentReading Controls.tsUpdating test progress and planning interactionsInvestigating testHook and data-testid usageInspecting types definitionPlanning comprehensive steps tests
I’m mapping out a detailed test plan for the steps component, focusing on interactions like button navigation, linear versus non-linear behavior, step completion display, and accessibility attributes. I’m checking examples and code to ensure the tests can hook into the DOM properly and cover all essential features.Analyzing testHook getTrigger usageSearching for data-testid attributesInvestigating test ID usage in steps exampleExamining vitest.browser.setup.tsPlanning comprehensive Step component testsPlanning test implementation with vitestSearching for dataAttr export****Investigating
dataAttrusage and planning step component testsI'm tracking down where
dataAttris defined, focusing on thepackages/dom/srcfolder and exports likeindex.ts. Meanwhile, I'm outlining detailed test cases for a multi-step UI component that relies on data attributes for state and navigation behavior, including helpers to access elements by custom data attributes and interactions with navigation buttons, orientation toggles, and progress indicators. I'm also clarifying how the test framework's locator helpers work to ensure the tests can interact with DOM elements as expected.