Skip to content

Commit

Permalink
fix: barcode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Nov 23, 2024
1 parent 13b6314 commit 7d56409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/page/odoo/commands/common/barcode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ export default function (): Partial<CMDDef> {
150,
],
],
example: '-o send -d O-CMD.NEXT',
example: '-o send -d "O-CMD.NEXT"',
};
}
4 changes: 2 additions & 2 deletions src/js/page/tests/test_common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ export default class TestCommon extends TerminalTestSuite {
this.assertNotEmpty(res);
await this.terminal.execute('view -m res.company -i 1', false, true);
await asyncSleep(2500);
res = await this.terminal.execute('barcode -o send -d O-CMD.EDIT', false, true);
res = await this.terminal.execute("barcode -o send -d 'O-CMD.EDIT'", false, true);
this.assertNotEmpty(res);
res = await this.terminal.execute('barcode -o send -d O-CMD.DISCARD,O-CMD.EDIT,O-CMD.DISCARD', false, true);
res = await this.terminal.execute("barcode -o send -d ['O-CMD.DISCARD','O-CMD.EDIT','O-CMD.DISCARD']", false, true);
this.assertNotEmpty(res);
}

Expand Down

0 comments on commit 7d56409

Please sign in to comment.