Update filenames to match short titles, add contentType frontmatter (#56836)
Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /copilot/example-prompts-for-github-copilot-chat/testing-code/create-end-to-end-tests-for-a-webpage
|
||||
- /copilot/copilot-chat-cookbook/testing-code/create-end-to-end-tests-for-a-webpage
|
||||
- /copilot/tutorials/copilot-chat-cookbook/testing-code/create-end-to-end-tests-for-a-webpage
|
||||
- /copilot/tutorials/copilot-chat-cookbook/testing-code/creating-end-to-end-tests-for-a-webpage
|
||||
versions:
|
||||
feature: copilot
|
||||
category:
|
||||
@@ -15,6 +16,7 @@ complexity:
|
||||
octicon: beaker
|
||||
topics:
|
||||
- Copilot
|
||||
contentType: tutorials
|
||||
---
|
||||
|
||||
Creating end-to-end tests for a webpage can be time-consuming and complex as the HTML will be generated dynamically. {% data variables.copilot.copilot_chat_short %} can help you create end-to-end tests for a webpage by suggesting the necessary code to interact with the webpage and validate the expected results.
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /copilot/example-prompts-for-github-copilot-chat/testing-code/create-mock-objects-to-abstract-layers
|
||||
- /copilot/copilot-chat-cookbook/testing-code/create-mock-objects-to-abstract-layers
|
||||
- /copilot/tutorials/copilot-chat-cookbook/testing-code/create-mock-objects-to-abstract-layers
|
||||
- /copilot/tutorials/copilot-chat-cookbook/testing-code/creating-mock-objects-to-abstract-layers
|
||||
versions:
|
||||
feature: copilot
|
||||
category:
|
||||
@@ -15,6 +16,7 @@ complexity:
|
||||
octicon: beaker
|
||||
topics:
|
||||
- Copilot
|
||||
contentType: tutorials
|
||||
---
|
||||
|
||||
When creating unit tests, it's important to ensure they're isolated and not depending on external services. One way to achieve this is to create mock objects that abstract layers of your application. {% data variables.copilot.copilot_chat_short %} can help you generate the code you need to create these mock objects.
|
||||
@@ -14,6 +14,7 @@ complexity:
|
||||
octicon: beaker
|
||||
topics:
|
||||
- Copilot
|
||||
contentType: tutorials
|
||||
---
|
||||
|
||||
A good suite of unit tests is critical to the success of any project. However, writing these tests can be time-consuming and are often neglected. {% data variables.copilot.copilot_chat_short %} can help generate these tests for you.
|
||||
|
||||
@@ -10,7 +10,8 @@ topics:
|
||||
- Copilot
|
||||
children:
|
||||
- /generate-unit-tests
|
||||
- /creating-mock-objects-to-abstract-layers
|
||||
- /creating-end-to-end-tests-for-a-webpage
|
||||
- /create-mock-objects
|
||||
- /create-end-to-end-tests
|
||||
contentType: tutorials
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user