Giter Club home page Giter Club logo

feed-reader-testing's Introduction

Project Overview

In this project, Udacity provided a web-based application that reads RSS feeds. It has Jasmine included and I completed the tests that were originally TODOs and added an additional test for future functionality. The original project is at http://github.com/udacity/frontend-nanodegree-feedreader and it is a part of Udacity's Front-end Web Developer Nanodegree

Viewing the Project

View the Project Online

You can view the project results online at http://kellim.github.io/feed-reader-testing

Download the project

  • Click the Download Zip button to download the project.
  • Open index.html which currently has Jasmine included at the bottom for convenience.

Note: As mentioned below, all the tests pass except the last 2 which are marked as pending for functionality that is not implemented yet.

About the Tests

The tests I wrote live in the Jasmine Spec file at /jasmine/spec/feedreader.js. Tests were created for the TODOs to:

  • Loop through each feed in the allFeeds object and ensure it has a URL defined and that the URL is not empty.
  • Loop through each feed in the allFeeds object and ensure it has a name defined and that the name is not empty.
  • Ensure the menu element is hidden by default.
  • Ensure the menu changes visibility when the menu icon is clicked. This test has two expectations: does the menu display when clicked and does it hide when clicked again.
  • Ensure when the loadFeed function is called and completes its work, there is at least a single .entry element within the .feed container. Note: loadFeed() is asynchronous so this test and the next one use Jasmine's beforeEach and asynchronous done() function.
  • Ensure when a new feed is loaded by the asynchronous loadFeed function that the content actually changes.

I created an additional Test Suite called 'Site Color' with two tests to ensure that when a visitor clicks a link to change the site background color to purple that it acutally updates the sliding sidebar menu and the header with the css to change the background color to the new purple color. These are the only 2 tests that will currently fail because the site does not have the functionality to change background color yet. For that reason, I used xit to mark the tests as pending so they won't run.

Resources

feed-reader-testing's People

Contributors

kellim avatar prather-mcs avatar walesmd avatar hkasemir avatar nicolasartman avatar skh avatar susansmith avatar

Watchers

James Cloos avatar  avatar

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.