Test plan for model editor.

This commit is contained in:
Anders Starcke Henriksen
2023-09-07 14:35:17 +02:00
parent df5a7bce19
commit baf959efa9

View File

@@ -60,7 +60,7 @@ choose to go through some of the Optional Test Cases.
- Check that the results table is rendered - Check that the results table is rendered
- Check that result locations can be clicked on - Check that result locations can be clicked on
#### Test case 3: Can use AST viewer #### Test case 4: Can use AST viewer
1. Click on any code location from a previous query to open a source file from a database 1. Click on any code location from a previous query to open a source file from a database
2. Open the AST viewing panel and click "View AST" 2. Open the AST viewing panel and click "View AST"
@@ -143,6 +143,39 @@ Run one of the above MRVAs, but cancel it from within VS Code:
- Check that the workflow run is also canceled. - Check that the workflow run is also canceled.
- Check that any available results are visible in VS Code. - Check that any available results are visible in VS Code.
### CodeQL Model Editor
Note: this is still behind feature flags.
#### Test Case 1: Opening the model editor
1. Download the `dsp-testing/sql2o-example` database from GitHub.
2. Open the Model editor with Cmd+P "Open CodeQL Model Editor".
- Check that the editor loads and shows methods to model.
- Check that methods are grouped per library.
- Check that the "Open database" link works.
- Check that the "Open extension pack" link works.
#### Test Case 2: Model methods
1. Expand one of the packages
- Change the model type and check that the other dropdowns change.
2. Save the modeled methods.
- Check that the model `yml` file has the entries that was modeled.
#### Test Case 3: Model with AI
1. Click "Model with AI".
- Check that rows change to "Thinking".
- Check that results come back and rows get filled out.
#### Test Case 4: Model as dependency
1. Click "Model as dependency"
- Check that grouping are now per package.
2. Click "Generate".
- Check that rows are filled out.
### General ### General
#### Test case 1: Change to a different colour theme #### Test case 1: Change to a different colour theme