Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/comment-run-enhanced-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
echo "Using changed-files-screenshots.txt for staging..."
sed -e 's/\r$//' changed-files-screenshots.txt | while IFS= read -r f; do
if [ -n "$f" ] && [ -f "$f" ]; then
git add -- "$f"
git add -f -- "$f"
fi
done
fi
Expand Down
10 changes: 9 additions & 1 deletion AutoSnap/tracewrightt/src/screenshot_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ export async function forceScreenshotWithRetries(cmd: string, page: Page, aiUtil
// Append repo-relative screenshot path to a changed files list for CI commit step
try {
const repoRoot = process.cwd();
const relative = path.relative(repoRoot, String(screenshotPath)).replace(/\\/g, '/');
const isAbsolute = typeof screenshotPath === 'string' && (screenshotPath.startsWith('/') || /:\\|:\//.test(screenshotPath));
// If path is relative, resolve it against the current markdown file directory when available
let absolutePath = String(screenshotPath);
if (!isAbsolute) {
const currentMdPath = aiUtils && aiUtils.getCurrentMdFilePath ? aiUtils.getCurrentMdFilePath() : null;
const baseDir = currentMdPath ? path.dirname(currentMdPath) : repoRoot;
absolutePath = path.resolve(baseDir, absolutePath);
}
const relative = path.relative(repoRoot, absolutePath).replace(/\\/g, '/');
const listPath = path.join(repoRoot, 'changed-files-screenshots.txt');
fs.appendFileSync(listPath, `${relative}\n`, { encoding: 'utf8' });
console.log(`📝 Appended screenshot to list: ${relative}`);
Expand Down
1 change: 0 additions & 1 deletion spanish/6-Image-Viewer/4_MoreOptionsToolbarMenu.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ Permite alterar as configurações do Visualizador de Imagens para várias categ
- **Finalidade:** Controla a visibilidade do menu do viewport.
- **Funcionalidade:** Os usuários podem ativar ou desativar esta configuração para ocultar ou mostrar automaticamente o menu do viewport, proporcionando um espaço de trabalho mais limpo. Quando ativada, o menu permanece oculto até que o usuário interaja com ele.


![More%20Settings.png](./img/More%20Settings.png)

**Abrir em Janela Separada**
Expand Down