Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works * Add test sharding * Update screenshots * Fixes for Element Gallery --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io> Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
committed by
GitHub
parent
41e3568a5a
commit
950e502ca6
@@ -183,7 +183,7 @@ function getNiceName(name) {
|
||||
for(var i = 0; i < name.length; i++) {
|
||||
if (name[i] === "_") indices.push(i);
|
||||
}
|
||||
return name.substring(indices[2] + 1, indices[3]);
|
||||
return name.substring(indices[0] + 1, indices[1]);
|
||||
}
|
||||
|
||||
function createMissingImageElement() {
|
||||
@@ -276,7 +276,7 @@ function addTable() {
|
||||
} else if(modifiedDayTime >= minModifiedDayTime) {
|
||||
hasTranslatedFiles = true;
|
||||
// Foreign file is the same as the english file, replacing the language
|
||||
const foreignFile = englishFile.replace("en]", `${dataLanguages[languageIndex]}]`).replace("_S_", "_T_")
|
||||
const foreignFile = englishFile.substring(0, englishFile.length-2) + dataLanguages[languageIndex];
|
||||
const fullForeignFile = `${dataLanguages[languageIndex]}/${foreignFile}.png`;
|
||||
td.appendChild(createImageElement(fullForeignFile, modifiedDayTime));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user