vocabulary-legacy icon indicating copy to clipboard operation
vocabulary-legacy copied to clipboard

Fix broken tests and re-enable them

Open dhruvkb opened this issue 4 years ago • 22 comments

Description Presently the card and header tests have been de-activated by changing the name from .test.js to .test.js.x. This is because the card tests are flaky (#327) and because there is an inexplicable error in the header test. The goal is to fix both test suites, update code, styling and snapshots as required and make them pass.

Reproduction Re-enable the tests and run on GitHub Actions.

Expected behavior Tests should pass.

dhruvkb avatar Apr 18 '20 14:04 dhruvkb

Can i take this?

arushivii avatar Apr 18 '20 15:04 arushivii

How to run on actions? how do i test them?

arushivii avatar Apr 26 '20 19:04 arushivii

@av-00 GitHub Actions will automatically run on your PR. You can however run the tests by following the contribution instructions in the Storybook.

dhruvkb avatar Apr 27 '20 07:04 dhruvkb

Screenshot from 2020-04-28 18-52-08 Can you please explain the difference between tests passed and snapshots passed as mentioned?

arushivii avatar Apr 28 '20 13:04 arushivii

Each test suite contains multiple tests. Each of these tests is associated with a single snapshot. So the number of passing tests will equal the number of passing snapshots.

dhruvkb avatar May 02 '20 10:05 dhruvkb

@dhruvkb Shall I implement this one?

Cronus1007 avatar Feb 05 '21 17:02 Cronus1007

@Cronus1007 we are currently not enabling visual regression testing on our apps because of large dev overhead.

dhruvkb avatar Feb 05 '21 18:02 dhruvkb

@dhruvkb So shall I close this PR #847

Cronus1007 avatar Feb 05 '21 18:02 Cronus1007

Stale issue message

github-actions[bot] avatar Oct 10 '21 07:10 github-actions[bot]

I would love this to be assigned to me please

Lovelynchristian avatar Oct 13 '21 16:10 Lovelynchristian

Thanks, @Lovelynchristian! I've assigned you to the issue :smile:

brylie avatar Oct 13 '21 16:10 brylie

Great! Thanks

Lovelynchristian avatar Oct 13 '21 16:10 Lovelynchristian

Good evening @brylie , I'm having issues installing Docker on my mac and windows. Please i need your assistance. Thanks.

Lovelynchristian avatar Oct 19 '21 14:10 Lovelynchristian

@Lovelynchristian, Docker isn't required for Vocabulary development. All that is needed are Node and npm. Please follow the Vocabulary installation instructions to get started with development.

brylie avatar Oct 20 '21 02:10 brylie

@brylie Thank you.

Lovelynchristian avatar Oct 20 '21 05:10 Lovelynchristian

Hi @brylie , trust you're doing great. In trying to replicate this issue on my local machine, I've been able to install all necessary dependencies and run the unit test within the unit directory. It took me sometime to locate the header.test.js file eventually i found out that the current version of the main branch does not have this file. How do i get a version of a branch that has all the necessary files for me to fix this issue?

Lovelynchristian avatar Oct 24 '21 19:10 Lovelynchristian

@dhruvkb, are you able to assist @Lovelynchristian with their question?

brylie avatar Oct 25 '21 05:10 brylie

@Lovelynchristian this file was likely removed during the restructuring. You can get that file from an older commit. Here it is.

dhruvkb avatar Oct 25 '21 12:10 dhruvkb

@dhruvkb Thank you.

Lovelynchristian avatar Oct 25 '21 17:10 Lovelynchristian

@dhruvkb, Thanks once again.

However, I still am not able to replicate the broken issue, on the latest version of the vocabulary repo. All test seems to pass with no failures. I was also able to get the test.js.x file as mentioned. It does not seem to impact the current version from my findings.

Kindly assist. I will like to first replicate the issue.

Lovelynchristian avatar Oct 26 '21 18:10 Lovelynchristian

@brylie Please i would appreciate your assistance .I would need response to my question. Thankyou.

Lovelynchristian avatar Oct 27 '21 05:10 Lovelynchristian

@Lovelynchristian it would help if I could try out the changes you have made. Would you open a pull request with the changes you have tried so I can review them?

brylie avatar Oct 27 '21 08:10 brylie