1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-15 16:10:06 +00:00

feat(sasjs-tests): granular test rerun

This commit is contained in:
mulahasanovic
2025-11-18 17:13:37 +01:00
parent f26d51747f
commit 6f73011bc1
3 changed files with 55 additions and 5 deletions

View File

@@ -146,8 +146,12 @@ export class TestsView extends HTMLElement {
await this.testRunner.rerunTest(
suiteIndex,
testIndex,
(completedSuites) => {
this.renderResults(container, completedSuites)
(suiteIdx, testIdx, testData) => {
const suites = container.querySelectorAll('test-suite')
const suiteElement = suites[suiteIdx] as TestSuiteElement
if (suiteElement && suiteElement.updateTest) {
suiteElement.updateTest(testIdx, testData)
}
}
)
}