Skip to content

Commit

Permalink
[frontend] unit test updated and translations added (#3167)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBouzinFiligran committed Apr 8, 2024
1 parent 5e85846 commit 756a4ed
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 17 deletions.
8 changes: 6 additions & 2 deletions opencti-platform/opencti-front/lang/front/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2691,5 +2691,9 @@
"entity_Tracking-Number": "Tracking-Nummer",
"entity_Credential": "Berechtigung",
"Auto collapse submenus in left navigation": "Untermenüs in der linken Navigation automatisch einklappen",
"All add or remove actions done on the graph after the last expansion will be lost.": "Alle Hinzufügungs- oder Entfernungsaktionen, die nach der letzten Erweiterung am Diagramm vorgenommen wurden, gehen verloren."
}
"All add or remove actions done on the graph after the last expansion will be lost.": "Alle Hinzufügungs- oder Entfernungsaktionen, die nach der letzten Erweiterung am Diagramm vorgenommen wurden, gehen verloren.",
"Disable vertical tree mode": "Vertikalen Baummodus deaktivieren",
"Enable vertical tree mode": "Vertikalen Baummodus einschalten",
"Disable horizontal tree mode": "Deaktivieren des horizontalen Baummodus",
"Enable horizontal tree mode": "Horizontalen Baummodus einschalten"
}
8 changes: 6 additions & 2 deletions opencti-platform/opencti-front/lang/front/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2691,5 +2691,9 @@
"Credential": "Credential",
"Credentials": "Credentials",
"entity_Tracking-Number": "Tracking number",
"entity_Credential": "Credential"
}
"entity_Credential": "Credential",
"Disable vertical tree mode": "Disable vertical tree mode",
"Enable vertical tree mode": "Enable vertical tree mode",
"Disable horizontal tree mode": "Disable horizontal tree mode",
"Enable horizontal tree mode": "Enable horizontal tree mode"
}
9 changes: 7 additions & 2 deletions opencti-platform/opencti-front/lang/front/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2690,5 +2690,10 @@
"Credential": "Credencial",
"Credentials": "Cartas_credenciales",
"entity_Tracking-Number": "El número de rastreo",
"entity_Credential": "Credencial"
}
"entity_Credential": "Credencial",
"All add or remove actions done on the graph after the last expansion will be lost.": "Todas las acciones de añadir o eliminar realizadas en el grafo después de la última expansión se perderán.",
"Disable vertical tree mode": "Desactivar el modo de árbol vertical",
"Enable vertical tree mode": "Activar el modo de árbol vertical",
"Disable horizontal tree mode": "Desactivar el modo de árbol horizontal",
"Enable horizontal tree mode": "Activar el modo de árbol horizontal"
}
8 changes: 6 additions & 2 deletions opencti-platform/opencti-front/lang/front/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2691,5 +2691,9 @@
"Credentials": "Informations d'identification",
"entity_Tracking-Number": "Numéro de suivi",
"entity_Credential": "Informations d'identification",
"All add or remove actions done on the graph after the last expansion will be lost.": "Toutes les actions d'ajout ou de suppression effectuées sur le graphique après la dernière expansion seront perdues."
}
"All add or remove actions done on the graph after the last expansion will be lost.": "Toutes les actions d'ajout ou de suppression effectuées sur le graphique après la dernière expansion seront perdues.",
"Disable vertical tree mode": "Désactiver le mode arbre verticale",
"Enable vertical tree mode": "Activer le mode arbre verticale",
"Disable horizontal tree mode": "Désactiver le mode arbre horizontal",
"Enable horizontal tree mode": "Activer le mode arbre horizontal"
}
8 changes: 6 additions & 2 deletions opencti-platform/opencti-front/lang/front/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -2691,5 +2691,9 @@
"Credentials": "資格",
"entity_Tracking-Number": "追跡番号",
"entity_Credential": "資格情報",
"All add or remove actions done on the graph after the last expansion will be lost.": "最後の拡張以降にグラフ上で行われた追加や削除の操作はすべて失われる。"
}
"All add or remove actions done on the graph after the last expansion will be lost.": "最後の拡張以降にグラフ上で行われた追加や削除の操作はすべて失われる。",
"Disable vertical tree mode": "垂直ツリーモードを無効にする",
"Enable vertical tree mode": "垂直ツリーモードを有効にする",
"Disable horizontal tree mode": "水平ツリーモードを無効にする",
"Enable horizontal tree mode": "水平ツリーモードを有効にする"
}
6 changes: 5 additions & 1 deletion opencti-platform/opencti-front/lang/front/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -2691,5 +2691,9 @@
"Credentials": "证书",
"entity_Tracking-Number": "追踪号码",
"entity_Credential": "凭据",
"All add or remove actions done on the graph after the last expansion will be lost.": "上次扩展后在图形上进行的所有添加或删除操作都将丢失。"
"All add or remove actions done on the graph after the last expansion will be lost.": "上次扩展后在图形上进行的所有添加或删除操作都将丢失。",
"Disable vertical tree mode": "禁用垂直树模式",
"Enable vertical tree mode": "启用垂直树模式",
"Disable horizontal tree mode": "禁用水平树模式",
"Enable horizontal tree mode": "启用水平树模式"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ describe('Session Storage', () => {
describe('If I get datas with my key from session storage', () => {
it('contains my value', () => {
const storedData = sessionStorage.getItem('testKey');
expect(storedData).to.not.equal(null);
expect(storedData).not.toEqual(null);

if (storedData) {
const parsedStoredData = JSON.parse(storedData);
expect(parsedStoredData[0].test).to.equal('value1');
expect(parsedStoredData[0].test).toEqual('value1');
}
});
});
Expand All @@ -42,7 +42,7 @@ describe('Session Storage', () => {

if (storedData) {
const parsedStoredData = JSON.parse(storedData);
expect(parsedStoredData[2]).to.equal(undefined);
expect(parsedStoredData[2]).toBeUndefined();
}
});

Expand All @@ -52,9 +52,9 @@ describe('Session Storage', () => {

if (storedData) {
const parsedStoredData = JSON.parse(storedData);
expect(parsedStoredData[0].test).to.equal('value2');
expect(parsedStoredData[1].test).to.equal('value1');
expect(parsedStoredData[2]).to.equal(undefined);
expect(parsedStoredData[0].test).toEqual('value2');
expect(parsedStoredData[1].test).toEqual('value1');
expect(parsedStoredData[2]).toBeUndefined();
}
});
});
Expand Down

0 comments on commit 756a4ed

Please sign in to comment.