Skip to content

Commit

Permalink
feat: add test for related prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Nov 26, 2024
1 parent d4242f7 commit 8a4c3b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
isSelected(index) ? 'x-w-full' : 'x-w-[204px] desktop:x-w-[303px]',
shouldHideButton(index) ? 'x-hidden' : ''
]"
data-test="related-prompt-item"
>
<div
class="x-flex x-flex-row x-items-start x-justify-between x-gap-12 x-px-16 x-pt-8 x-transition-all x-duration-500"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/cucumber/scroll.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Then('scroll position is at top', () => {
* the subheader. And then we can reach the bottom because we have the total height of the page.
*/
When('scrolling down to the bottom', () => {
cy.getByDataTest('query-preview-item')
cy.getByDataTest('related-prompt-item')
.should('have.length.at.least', 5)
.then(() => {
cy.getByDataTest('base-scroll').scrollTo('center', { duration: 1000 });
Expand Down

0 comments on commit 8a4c3b2

Please sign in to comment.