Giter VIP home page Giter VIP logo

feedreader-testing's People

Contributors

hbkwong avatar hkasemir avatar kooltheba avatar kratam avatar lucifer1004 avatar matthiasludwig avatar nicolasartman avatar prather-mcs avatar skh avatar susansmith avatar thalescomp avatar timbrockman avatar walesmd avatar yhippa avatar

Watchers

 avatar  avatar

feedreader-testing's Issues

"Initial Entries" test suite

Pending

  • Write a new test suite named "Initial Entries"
  • Write a test that ensures when the loadFeed function is called and completes its work, there is at least a single .entry element within the .feed container. Remember, loadFeed() is asynchronous so this test will require the use of Jasmine's beforeEach and asynchronous done() function.

"The menu" test suite

Pending:

  • Write a new test suite named "The menu"
  • Write a test that ensures the menu element is hidden by default. You'll have to analyze the HTML and the CSS to determine how we're performing the hiding/showing of the menu element.
  • Write a test that ensures the menu changes visibility when the menu icon is clicked. This test should have two expectations: does the menu display when clicked and does it hide when clicked again.

"New Feed Selection" test suite

Pending:

  • Write a new test suite named "New Feed Selection"
  • Write a test that ensures when a new feed is loaded by the loadFeed function that the content actually changes. Remember, loadFeed() is asynchronous.

Update project' Readme.md

Update the README file detailing all steps required to successfully run the application.

If you have added additional tests, provide documentation for what these future features are and what the tests are checking for.

Development strategies

1. Familiarize yourself with the starter code

  • Open up index.html and review the functionality of the application within your browser
  • What is all the code in app.js doing? Be sure to read all code comments
  • Check out style.css. How is styling applied to the application?

2. Explore the Jasmine spec file in feedreader.js

  • This is the file in which you'll be writing your tests
  • Make sure to read all code comments here as well
  • Review the Jasmine documentation if needed

3. Edit the allFeeds variable in app.js to make the provided test fail

  • See how Jasmine visualizes this failure in your application
  • Return the allFeeds variable to a passing state after reviewing the failed test

4. Write a test that loops through each feed in the allFeeds object and ensures it has a URL defined and that the URL is not empty

  • For example, how would you use a for...of loop in this test?

5. Write a test that loops through each feed in the allFeeds object and ensures it has a name defined and that the name is not empty.

  • Think about how you wrote the previous test. What are you testing for this time?

6. Write a new test suite named "The menu"

  • What are you describe-ing in this test suite?

7. Write a test that ensures the menu element is hidden by default.

  • You'll have to analyze the HTML and the CSS to determine how the hiding/showing of the menu element is implemented.
  • What code in app.js is directly involved with toggling the menu on and off?

8. Write a test that ensures the menu changes visibility when the menu icon is clicked. This test should have two expectations: does the menu display itself when clicked, and does it hide when clicked again?

  • Think about how you wrote the previous test. What is different this time around?
  • Which clickable element are you checking for?
  • How do you "simulate" a mouse click that element without actually clicking it?

9. Write a test suite named "Initial Entries"

  • What are you describe-ing in this test suite?

10. Write a test that ensures when the loadFeed function is called and completes its work, there is at least a single .entry element within the .feed container.

  • How does Jasmine's beforeEach() function work?
  • How does the loadFeed() function in app.js work? Is it synchronous or asynchronous?

11. Write a test suite named "New Feed Selection"

  • What are you describe-ing in this test suite?

12. Write a test that ensures when a new feed is loaded by the loadFeed function that the content actually changes

  • How is this test different from the previous test?

Additionally, note that:

  • No test should be dependent on the results of another
  • Callbacks should be used to ensure that feeds are loaded before they are tested
  • Error handling should be implemented for undefined variables and out-of-bound array access
  • When complete, all of your tests should pass
  • When you're all finished, write a README file detailing all steps required to successfully run the application. If you have added additional tests, provide documentation for what these future features are and what the tests are checking for.

Improve RSS Feeds testing

Pending:

  • Write a test that loops through each feed in the allFeeds object and ensures it has a URL defined and that the URL is not empty.
  • Write a test that loops through each feed in the allFeeds object and ensures it has a name defined and that the name is not empty.
  • Additional: added type data validation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.