|
1 | | -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 1 | +# QA Automation Coding Challenge |
2 | 2 |
|
3 | | -## Available Scripts |
| 3 | +Thank you for taking the time to complete this challenge! |
4 | 4 |
|
5 | | -In the project directory, you can run: |
| 5 | +This repo consists of a basic working app for which you are requested to setup a simple testing infrastructure, extract the main user flows, and implement tests. |
6 | 6 |
|
7 | | -### `yarn start` |
| 7 | +Please read below for the context and instructions. |
8 | 8 |
|
9 | | -Runs the app in the development mode.<br /> |
10 | | -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
| 9 | +## Requirements |
11 | 10 |
|
12 | | -The page will reload if you make edits.<br /> |
13 | | -You will also see any lint errors in the console. |
| 11 | +### Why |
14 | 12 |
|
15 | | -### `yarn test` |
| 13 | +Adam runs his own web development school, in which he teaches the fundamentals of the web to his students, over the course of several months. |
16 | 14 |
|
17 | | -Launches the test runner in the interactive watch mode.<br /> |
18 | | -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
| 15 | +Adam wishes to maintain an easy overview of the progress of his students. He wants to be able to quickly get a simple list of repos owned by a given student, and see the most basic details of each repo. He also wants to be able to easily navigate to a specific repo, in case he needs to dive deeper. |
19 | 16 |
|
20 | | -### `yarn build` |
| 17 | +Adam likes Github, but the UI is not built for a minimalistic, non-paginated overview of repos. For this he decides to build his own simple app, leveraging the Github API. He defines the following specifications: |
21 | 18 |
|
22 | | -Builds the app for production to the `build` folder.<br /> |
23 | | -It correctly bundles React in production mode and optimizes the build for the best performance. |
| 19 | +### Acceptance Criteria |
24 | 20 |
|
25 | | -The build is minified and the filenames include the hashes.<br /> |
26 | | -Your app is ready to be deployed! |
| 21 | +1. The UI consists of a header, a search form and a search result section |
| 22 | +2. The header displays the title of the app |
| 23 | +3. The search form accepts a text input as a search term. Search is activated by clicking the "Go" button, or by pressing the "Enter" key |
| 24 | +4. For each repo found, the search result section displays a row with basic info about that repo: name and description. Clicking on the repo name takes the user to the repo's URL. In case of a missing value, `–` is displayed |
| 25 | +5. The user sees feedback about the result of the search action. Either a success or error message are shown above the search field at the completion of a search action, for a short amount of time. If the error is due to a user not found on Github, a specific error message is displayed. Otherwise, a generic error message is displayed |
27 | 26 |
|
28 | | -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
| 27 | +## Here is where you come in... |
29 | 28 |
|
30 | | -### `yarn eject` |
| 29 | +Adam has finished a first version of the app. It meets the requirements and serves him nicely, but is still very basic. |
31 | 30 |
|
32 | | -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
| 31 | +He would like to enhance the app over time in iterations, adding more features. To do that well, he decides he needs confidence to continuously enhance the app without breaking it or losing one of the fundamental requirements. |
33 | 32 |
|
34 | | -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
| 33 | +### Instructions |
35 | 34 |
|
36 | | -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
| 35 | +Help Adam gain confidence in further development by automatically testing the most critical features of the app, by doing the following: |
37 | 36 |
|
38 | | -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
| 37 | +1. Fork the repository, setup and run the app (see [setup](./setup.md) file for instructions) |
| 38 | +2. Using the product description, acceptance criteria and the app itself, compile a list of several testable user flows, cases or scenarios. This doesn't have to cover every possible real-life case, please focus on what you think is most fundamental |
| 39 | +3. Based on your assessment of importance and effort, prioritise this list. Imagine this list would be later converted to tickets to be tackled in the next few work iterations of a product development team. Please explain your reasoning briefly. Add this list and your reasoning to the empty [`testable-flows.md`](./testable-flows.md) file |
| 40 | +4. Out of these flows, choose two and implement tests for them |
| 41 | +5. Add to this `README.md` file (or in a separate file) instructions on how to run these tests |
39 | 42 |
|
40 | | -## Learn More |
| 43 | +### Things to note |
41 | 44 |
|
42 | | -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
| 45 | +- Use any testing technology you'd like – Cypress, Selenium or any other you think would work well |
| 46 | +- Feel free to modify or add whatever you need including addition of other packages, your own libraries, etc |
| 47 | +- Please submit a link to your finished repository when you are ready |
43 | 48 |
|
44 | | -To learn React, check out the [React documentation](https://reactjs.org/). |
45 | | - |
46 | | -### Code Splitting |
47 | | - |
48 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting |
49 | | - |
50 | | -### Analyzing the Bundle Size |
51 | | - |
52 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size |
53 | | - |
54 | | -### Making a Progressive Web App |
55 | | - |
56 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app |
57 | | - |
58 | | -### Advanced Configuration |
59 | | - |
60 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration |
61 | | - |
62 | | -### Deployment |
63 | | - |
64 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/deployment |
65 | | - |
66 | | -### `yarn build` fails to minify |
67 | | - |
68 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
| 49 | +## Good luck and happy coding! :) |
0 commit comments