Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. Introduction
  46. In order to successfully complete this exam, you will need to have node v4 or greater installed on your machine.
  47. Install project dependencies: npm i
  48. To start the application: npm start
  49. To run the tests: npm test
  50.  
  51. These are the only commands you should have to worry about. Running npm start will start a local webserver and you can access the page from http://localhost:8080
  52. Once you are finished with the exam, please delete the node_modules directory, zip the folder, and email it to the exam coordinator.
  53. Expectations
  54. We expect that you will complete this test in an honest fashion. You should not copy and paste code from stack overflow or blogs in order to complete it. Successful completion will include an implementation for each of the following requirements. Extra credit will be given for tests (which use mocha and enzyme), refactoring, and styles.
  55. Requirements
  56. Scenario
  57. Given a list of pizzas available at '/pizza.json'
  58. When the server returns a response
  59. Then the list of pizzas should be shown
  60. And a filter input is shown
  61. And a sort button is shown
  62.  
  63. Scenario
  64. Given the user has loaded the page
  65. When the page waits for data to load
  66. Then the text "Loading" should be shown
  67. And no other elements should be shown
  68.  
  69. Scenario
  70. Given the page is shown with a list of pizzas
  71. When the user enters filter text
  72. Then only the pizzas that include the filter text should be shown
  73.  
  74. Scenario
  75. Given the page is shown with a list of pizzas
  76. When the user enters filter text
  77. Then the list of pizzas should be filtered in a case insensitive way
  78.  
  79. Scenario
  80. Given the page is shown with a list of pizzas
  81. When the user clicks the sort button
  82. Then the list of pizzas will be sorted in reverse alphabetic order
  83.  
  84. Scenario
  85. Given the user has entered text into the filter input
  86. When the user clicks the sort button
  87. The sorted list of pizzas should also be filtered according to the input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement