Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write Cypress tests to ensure that the app is loading and functioning as it should #8

Open
20041540MichaelKelly opened this issue Jul 29, 2023 · 0 comments
Assignees

Comments

@20041540MichaelKelly
Copy link

20041540MichaelKelly commented Jul 29, 2023

Write tests in a new .cy script in the Cypress directory that has been previously created.
Write as many tests as possible that will cover every interaction that a user can make.

  • clone tutors-reference-course
  • npx tutors-publish in the root folder
  • In this folder a json folder will be created.
  • deploy this to Netifly to imitate the real site

reader this is the site to test

  • npx cypress open - from the apps/course directory.
  • Once a test has accessed a topic then use Cypress to click into all the sub directories
  • Check to ensure all links and routes are working as expected and displaying as should.

Make the tests dynamic enough to run with any course JSON data .ie. NO Hardcoding

20041540MichaelKelly referenced this issue in 20041540MichaelKelly/tutors Aug 4, 2023
…itle is reference in the title bar and if titles and summeries are present on the page, A click on all topics that already existed, deep topics has been modified and a lot more methods created in the command.ts to acheive a dynamic testing of all the links present within the topics, lo and los etc.
20041540MichaelKelly referenced this issue in 20041540MichaelKelly/tutors Aug 13, 2023
…tic html generator, github and web and unit and archive have been included in the testing which had not been previoulsy. A new plugin called cypress-verify-download that verifys the file/folder did download. Also there is a fix in here for issue #385, just the removal of cy.go('back').
@edeleastar edeleastar transferred this issue from tutors-sdk/tutors Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant