Skip to content

Landing page tests#242

Open
Andrew-Ochieng wants to merge 28 commits intoDevfrom
Landing-Page-Tests
Open

Landing page tests#242
Andrew-Ochieng wants to merge 28 commits intoDevfrom
Landing-Page-Tests

Conversation

@Andrew-Ochieng
Copy link
Collaborator

Have you read the contributing guidelines ?

What is the purpose of your pull request?

  • Bug fix
  • New feature
  • Documentation

Proposed changes

Warning

Please read these points carefully and answer honestly with an X
into all the boxes. Example : [X]

Before submitting a pull request make sure you have:

  • Read the guidelines for contributing.
  • Wrote some tests.
  • Respected the linting guidelines (read the guide below for help).

How to Check and Fix Linting Issues

Run npm run validate. This command will run prettier and eslint checks to ensure linting guidelines are respected.

  • If the command exits with code 0 (build is successful), there are no linting issues.

  • If the command exits with a code other than 0, scroll up the command output and look for identified linting issues. Fix them and revalidate to check if the issues have been resolved by re-running the command.

@vercel
Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
syt-web-redesign ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 6:09am

@alvyynm
Copy link
Member

alvyynm commented Sep 18, 2024

@sonylomo I've fixed the tests. All tests run successfully except one which depends on events data from the API (the API doesn't have any events data as of now) as shown here.:
7 [chromium] › pages/landing-page.spec.js:53:3 › Landing page tests › Check 'OUR EVENTS' section title, events card, and 'View More' button (6.3s)
21 [webkit] › pages/landing-page.spec.js:53:3 › Landing page tests › Check 'OUR EVENTS' section title, events card, and 'View More' button (6.3s)

By disabling checking if at least one event card is displayed, all the tests run as expected 👇:
Screenshot 2024-09-18 at 13 22 10

@Ase020 I can see your recent PR introduced some linting issue. Haven't had time to go over it, can you kindly address that? Thanks.

@alvyynm alvyynm requested review from Ase020 and sonylomo September 18, 2024 10:28
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.

4 participants