MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / setHtmlContext

Method setHtmlContext

lib/ai.js:135–146  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

133 }
134
135 async setHtmlContext(html) {
136 let processedHTML = html
137
138 if (this.htmlConfig.simplify) {
139 processedHTML = removeNonInteractiveElements(processedHTML, this.htmlConfig)
140 }
141
142 if (this.htmlConfig.minify) processedHTML = await minifyHtml(processedHTML)
143 if (this.htmlConfig.maxLength) processedHTML = splitByChunks(processedHTML, this.htmlConfig.maxLength)[0]
144
145 this.minifiedHtml = processedHTML
146 }
147
148 getResponse() {
149 return this.response || ''

Callers 3

healFailedStepMethod · 0.95
parseInputFunction · 0.80
ai_test.jsFile · 0.80

Calls 3

minifyHtmlFunction · 0.90
splitByChunksFunction · 0.90

Tested by

no test coverage detected