Fix i18n for buttons
This commit is contained in:
2 files changed
+14
-1
No files matched your search
@@ -27,7 +27,7 @@ export default class HledgerDashboard extends Component {
|
||||
get reports() {
|
||||
return REPORT_IDS.map((id) => ({
|
||||
id,
|
||||
label: i18n(`hledger.reports.${id}`),
|
||||
label: `hledger.reports.${id}`,
|
||||
icon: {
|
||||
accounts: "list",
|
||||
balance_sheet: "scale-balanced",
|
||||
|
||||
@@ -74,6 +74,19 @@ acceptance("Hledger plugin", function (needs) {
|
||||
await visit("/t/-/45");
|
||||
|
||||
assert.dom(".hledger-dashboard__toolbar .btn").exists({ count: 4 });
|
||||
assert
|
||||
.dom(".hledger-dashboard__toolbar .btn:nth-of-type(1)")
|
||||
.hasText("Accounts");
|
||||
assert
|
||||
.dom(".hledger-dashboard__toolbar .btn:nth-of-type(2)")
|
||||
.hasText("Balance sheet");
|
||||
assert
|
||||
.dom(".hledger-dashboard__toolbar .btn:nth-of-type(3)")
|
||||
.hasText("Income statement");
|
||||
assert
|
||||
.dom(".hledger-dashboard__toolbar .btn:nth-of-type(4)")
|
||||
.hasText("Equity");
|
||||
assert.dom(".hledger-dashboard__table").includesText("Total");
|
||||
assert.dom(".hledger-dashboard__table").includesText("assets:bank");
|
||||
assert.dom(".hledger-dashboard__table").includesText("1000.00 EUR");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user