Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

🧪 Create integration tests for help view #111

Closed
Tracked by #68
Roshanjossey opened this issue Jan 12, 2021 · 3 comments
Closed
Tracked by #68

🧪 Create integration tests for help view #111

Roshanjossey opened this issue Jan 12, 2021 · 3 comments
Labels
status/blocked-help-needed This issue is blocked and needs support type/feature-request New feature or request

Comments

@Roshanjossey
Copy link
Contributor

🧪 This is the view that should be tested

Screenshot from 2021-01-12 12-41-23

💻 How to run this project locally

  1. Fork this repository by clicking on fork button on the top right. This will create a copy of this repository on your account.

  2. Clone your fork.
    Get the URL of your fork by clicking on code button on GitHub.
    Clone it to your local with command git clone <URL you copied>

    git clone <https://github.com/><your-username>/dashboard.git.

  3. Install dependencies using command npm i.

cd dashboard
npm i
  1. Run dashboard via the following ways .

Run in the debug mode

  1. npm run start_dev-server

    testServer will be running on http://localhost:5000 by default

  2. npm run start-dashboard

    Dashboard will be served on http://localhost:3000 by default

🏃‍♀️ How to get there.

Click on the option Help from the sidebar on the left

The component of interest are NotFound

🧪 How to run integration tests

Run npm run cy:dev from your console. This will open cypress and you can run the test suites you want to run by clicking on it.

When you're done working, make sure that npm run cy:run passes without any errors.

📝 Where to make changes?

In cypress/integration/views directory and in the components you want to test.
Check this pull request

Pay attention to the changes in files cypress/integration/views/logsView.ts and src/components/LogStream/BarChartBase.tsx. You'll have to make similar changes.

📖 How to learn about writing integration tests?

We use a framework called cypress for integration tests. Their documentation is quite helpful.
Go through their best practices, interacting with elements, structuring tests and you'll get a great understanding of how to write good integration tests

🖐️ I want to work on this.

If you're interested in working on this issue, please write a comment down below. 💬

If you need any help or have questions, you can ask questions here or ask in our slack group

@Roshanjossey Roshanjossey added type/feature-request New feature or request status/blocked-help-needed This issue is blocked and needs support labels Jan 12, 2021
@rjgallego
Copy link
Contributor

Hello, I'd like to help with this issue!

@Roshanjossey
Copy link
Contributor Author

Hi @rjgallego, thank you for your interest. Try running this project locally by following the steps in the issue description. If you run into any problems or have questions about the issue, you can ask here.

@Roshanjossey
Copy link
Contributor Author

Fixed in #136

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/blocked-help-needed This issue is blocked and needs support type/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants