Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement test steps display in new ui #599

Merged

Conversation

shadowusr
Copy link
Member

@shadowusr shadowusr commented Sep 8, 2024

lib/adapters/test/testplane.ts Outdated Show resolved Hide resolved
lib/static/components/section/body/history/index.jsx Outdated Show resolved Hide resolved
lib/static/components/section/body/history/index.jsx Outdated Show resolved Hide resolved
lib/static/components/section/body/history/index.jsx Outdated Show resolved Hide resolved
lib/static/new-ui/components/ErrorInfo/index.module.css Outdated Show resolved Hide resolved
<span className={classNames([styles.item, styles.collapseSecond, {
[styles['item--failed']]: props.isFailed
}])}>{props.args[index] ?? 'null'}</span>
{renderItems(index + 1)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to wrap next step with previous? they should be on the same level

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is the only way to implement this behavior:

  • to have multiple spans
  • do not shrink spans in the beginning until there's no space left
  • if there's no space left, last visible span should end with ellipsis and all spans after it should be shrunk to 0

See sandbox: https://stackblitz.com/edit/stackblitz-starters-uksisd?file=index.html

@shadowusr shadowusr merged commit 7a7b9b1 into master Sep 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants