Skip to content

Commit

Permalink
fix e2e test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuignoto committed Feb 13, 2024
1 parent 941d22e commit 2a45d89
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/react-chrono/vertical_alternating_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ context('Chrono.Vertical.Alternating.Mixed', () => {

it('check read more action', () => {
cy.get('.vertical-item-row')
.eq(1)
.eq(2)
.find('.card-description')
.should('have.class', 'show-less');
// cy.scrollTo(700);
cy.get('.vertical-item-row').eq(1).find('.show-more').click();
cy.get('.vertical-item-row').eq(2).find('.show-more').click();
cy.wait(500);
cy.get('.vertical-item-row')
.eq(1)
.eq(2)
.find('.card-description')
.should('not.have.class', 'show-less');
});
Expand Down
Binary file not shown.
12 changes: 2 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/timeline/timeline-popover-elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const QuickJump: FunctionComponent<QuickJumpProp> = ({
isDarkMode,
position,
}: QuickJumpProp) => {
const {buttonTexts} = useContext(GlobalContext);
const { buttonTexts } = useContext(GlobalContext);
return (
<PopOver
placeholder={buttonTexts.jumpTo}
Expand Down

0 comments on commit 2a45d89

Please sign in to comment.