test(tokens): Automate tests from the release 2.14: tokens group#479
test(tokens): Automate tests from the release 2.14: tokens group#479estefafdez merged 35 commits intomainfrom
Conversation
…mic page selection
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…tqa into estefafdez/task/token-group
There was a problem hiding this comment.
Pull request overview
Adds Playwright coverage for Tokens “group/path” behavior introduced in release 2.14, including UI assertions and screenshot baselines for the nested token grouping.
Changes:
- Added
token-group.spec.tswith Qase-linked tests for single-segment tokens and nested group display for shared paths. - Extended
TokensComponentwith helpers/locators to assert single-segment rendering and group/path behavior. - Added new screenshot baselines for the nested group rendering (currently linux/chrome + linux/firefox).
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
tests/tokens/token-group.spec.ts |
New tests for token pill rendering and nested grouping, including a screenshot assertion. |
pages/workspace/tokens/token-components/tokens-base-component.ts |
Adds locators and assertion helpers used by the new tests. |
tests/tokens/token-group.spec.ts-snapshots/linux/chrome/token-group-primary-nested.png |
Baseline screenshot for chrome on linux. |
tests/tokens/token-group.spec.ts-snapshots/linux/firefox/token-group-primary-nested.png |
Baseline screenshot for firefox on linux. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Kilo Code Review could not run — your account is out of credits. Add credits at app.kilo.ai to enable reviews on this change. |
|
New things after what we commented on the daily @daniel-herrero:
export interface TokenGroupData extends BasicTokenData {
parent?: TokenGroupData;
}
The POM methods (isTokenGroupVisible, isTokenVisibleInGroup, isLastSegmentVisibleInGroup, isTokenGroupCount) now accept
Also removed the duplicate |
|
@daniel-herrero both tests are working after the changes :)
|
daniel-herrero
left a comment
There was a problem hiding this comment.
LGTM! Thank you for solving the basis of the token groups and dealing with their locators!

Done Definition Checks
Taiga URL (optional)
Taiga Ticket: 931
Description
This PR includes the following tests from the release 2.14:
How to test
Screenshots 📸 (optional)