stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
11 stars 42 forks source link

Cypress test for admin bounties by custom date range #488

Closed Vayras closed 3 months ago

Vayras commented 3 months ago

issue: #486

Vayras commented 3 months ago

@elraphty Jest which is unrelated to this PR is failing

MuhammadUmer44 commented 3 months ago

HI @Vayras, @elraphty, When Vayras is give up then please assign me.

Vayras commented 3 months ago

HI @Vayras, @elraphty, When Vayras is give up then please assign me.

@MuhammadUmer44 Hey! This one's done PR is already raised with Cypress passing as per the issue

elraphty commented 3 months ago

HI @Vayras, @elraphty, When Vayras is give up then please assign me.

@MuhammadUmer44 Hey! This one's done PR is already raised with Cypress passing as per the issue

@Vayras can you take a second look, @MuhammadUmer44 worked on a similar task

Vayras commented 3 months ago

HI @Vayras, @elraphty, When Vayras is give up then please assign me.

@MuhammadUmer44 Hey! This one's done PR is already raised with Cypress passing as per the issue

@Vayras can you take a second look, @MuhammadUmer44 worked on a similar task

As in to reference the jest? Sure will do

elraphty commented 3 months ago

486

The super admin header is what is failing

  ● Header Component › displays header with extras

    expect(element).toHaveTextContent()

    Expected element to have text content:
      01 Jan 2024 - 31 Mar 2024
    Received:
      01 Jan - 31 Mar 2024

      83 |
      84 |     const StartDate90 = today.clone().subtract(90, 'days');
    > 85 |     expect(monthElement).toHaveTextContent(
         |                          ^
      86 |       `${StartDate90.format('DD MMM YYYY')} - ${expectedEndDate.format('DD MMM YYYY')}`
      87 |     );
      88 |   });
Vayras commented 3 months ago

@elraphty Thanks, will fix this quick

Vayras commented 3 months ago

@elraphty all checks have passed

elraphty commented 3 months ago

@elraphty all checks have passed

@Vayras you did not assert the visibility of the bounties

Vayras commented 3 months ago

@elraphty all checks have passed

@Vayras you did not assert the visibility of the bounties

Let me take a look

Vayras commented 3 months ago

@elraphty done with the assertion