Skip to content

Xitlaly-P/nextjs-playwright-testing

 
 

Repository files navigation

NextJS Tutorial

📤 Submission Guidelines

Complete through deploying your NextJS app to Vercel, its better than GitHub Pages.

Put a link to your site hosted on Vercel here

Submit a link to your repository to Canvas when your code passes the Playwright tests.

🚀 Understanding Playwright Tests

There are multiple different tests in this assignment meant to test that you've successfully completed different parts of the nextjs tutorial. Below is an explanation of the different things being tested to help you better understand the assignment or give you guidance on what is needed in case one of the tests fails.

try to follow the tutorial as closely as possible

  1. Test 1: This test checks that the layout.module.css file is properly applied to the layout component.

  2. Test 2: This test checks to make sure that the globals.css was copied correctly and is applied to the _app.js file.

  3. Test 3: This test checks that you've updated the placeholder "Your Name" to be your actual Name.

  4. Test 4: Similar to the previous tests, this one checks that you've updated the description from the placeholder "[Your Self Introduction]"

  5. Test 5: This test checks that your home page shows all the blogs created.

  6. Test 6: This test checks that the blogs in the home page have the correct names matching the blogs from the tutorial.

  7. Test 7: This test checks that the date in each blog is correctly formatted based on the format specified in date.js

  8. Test 8: This test checks that that each blog contains content and is not blank.

  9. Test 9: This test checks that the back to home button on each blog works correctly

  10. Test 10: This test checks that you created an api route and navigating to it returns a success status

Remember that the failure of any test is an opportunity to understand where something might be wrong in your code. Use the explanations above as a guide to pinpoint the issue.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.2%
  • CSS 10.8%