Skip to content

Commit

Permalink
Merge pull request #143 from Antoniiosc7/140-delete-console-logs
Browse files Browse the repository at this point in the history
delete console logs and added new examples
  • Loading branch information
Antoniiosc7 authored Jun 19, 2024
2 parents dc72b86 + 82849e5 commit 887d046
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 21 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 57 additions & 3 deletions src/app/components/yamels/yamels.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class YamelsComponent implements OnInit {
repoName: "tp-testbench"
owner: "Antoniiosc7"
prNumber: "1"
mergeMessage: "mergead"
mergeMessage: "merged"
method: "PUT"`
},
{
Expand All @@ -97,7 +97,8 @@ export class YamelsComponent implements OnInit {
with:
repoName: "tp-testbench"
fileName: "file.txt"
fileContent: "content"`
fileContent: "content"
method: "POST"`
},
{
id: 'example11',
Expand Down Expand Up @@ -177,7 +178,60 @@ export class YamelsComponent implements OnInit {
content: `- uses: "github/deleteFile"
with:
repoName: "tp-testbench"
fileName: "2323232323"`
fileName: "name_of_file"
method: "DELETE"`
},
{
id: 'example19',
content: `- uses: "github/deleteRepo"
with:
repoName: "tp-testbench"
method: "DELETE"`
},
{
id: 'example20',
content: `- uses: "github/changeBranch"
with:
repoName: "tp-testbench"
branchToChangeTo: "branch2"
method: "PUT"`
},
{
id: 'example21',
content: `uses: "github/createBranch"
with:
repoName: "tp-testbench"
branchName: "branch2"
method: "POST"`
},
{
id: 'example22',
content: `- uses: "bluejay/checkContain"
with:
key: "additions"
minExpectedValue: "5"
method: "POST"`
},
{
id: 'example23',
content: `- uses: "github/cloneRepo"
with:
owner: "Antoniiosc7"
repoName: "tp-testbench"
method: "POST"`
},
{
id: 'example24',
content: `- uses: "github/getRepoInfo"
with:
repoName: "tp-testbench"
branchName: "main"
method: "GET"`
},
{
id: 'example25',
content: `- uses: "github/listRepos"
method: "GET"`
}
];

Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/tests/tests.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class TestsComponent implements OnInit {
this.response = '';
data.steps.reduce((prevPromise, step: Step) => {
return prevPromise.then(() => {
return new Promise(resolve => setTimeout(resolve, 3000)) // Agregar retraso de 5 segundos aquí
return new Promise(resolve => setTimeout(resolve, 3000))
.then(() => {
// @ts-ignore
const handler = this.stepHandlers[step.method][step.uses];
Expand All @@ -393,7 +393,7 @@ export class TestsComponent implements OnInit {
});
}, Promise.resolve()).then(
() => {
this.isLoading = false; // Mover esta línea aquí
this.isLoading = false;
}
).catch(error => {
console.error(error);
Expand Down
11 changes: 9 additions & 2 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"VIEWING": "You are viewing {{fileName}}."
},
"EXECUTOR": {
"EXECUTING": "You are executing {{fileName}}.",
"EXECUTING": "You are editing the file: {{fileName}}.",
"SAVE_AS_JSON": "Save as json",
"CONTEXT_SECTION": "Context Section",
"SCOPE_INFORMATION": "Scope Information",
Expand Down Expand Up @@ -395,7 +395,14 @@
"example15": "Check in response",
"example16": "Merge last created PR",
"example17": "Check in response 2",
"example18": "Delete file"
"example18": "Delete file",
"example19": "Delete repository",
"example20": "Change branch",
"example21": "Create new branch",
"example22": "Old check in response",
"example23": "Clone repository",
"example24": "Info from a repository",
"example25": "List of repositories"
},
"TESTS": {
"title": "Metrics testing with yaml",
Expand Down
31 changes: 19 additions & 12 deletions src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,22 +380,29 @@
"section": {
"example1": "Ramas del repositorio",
"example2": "Crear rama",
"example3": "Delete rama",
"example4": "Ver issues",
"example5": "Crear issues",
"example3": "Eliminar rama",
"example4": "Ver incidencias",
"example5": "Crear incidencias",
"example6": "Crear PR",
"example7": "PRs Abiertas",
"example8": "Mergear una PR",
"example9": "Hacer un pull de la rama",
"example7": "PRs abiertas",
"example8": "Fusionar una PR",
"example9": "Hacer pull de la rama",
"example10": "Crear archivo",
"example11": "Hacer commit",
"example12": "Hacer push",
"example13": "Computar métrica de TPA",
"example14": "Computar métrica",
"example15": "Comprobar en la respuesta",
"example16": "Mergear última PR",
"example17": "Comprobar en la respuesta 2",
"example18": "Eliminar archivo"
"example13": "Calcular métricas de TPA",
"example14": "Calcular métrica",
"example15": "Verificar en la respuesta",
"example16": "Fusionar la última PR creada",
"example17": "Verificar en la respuesta 2",
"example18": "Eliminar archivo",
"example19": "Eliminar repositorio",
"example20": "Cambiar rama",
"example21": "Crear nueva rama",
"example22": "Antigua verificación en la respuesta",
"example23": "Clonar repositorio",
"example24": "Información de un repositorio",
"example25": "Lista de repositorios"
},
"TESTS": {
"title": "Testeo de métricas con yaml",
Expand Down

0 comments on commit 887d046

Please sign in to comment.