Skip to content

Commit

Permalink
Re-check ispresent on toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud authored and lgfa29 committed Jul 11, 2022
1 parent c850ff9 commit a6e1f03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/tests/acceptance/optimize-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ module('Acceptance | optimize', function (hooks) {
let toggledAnything = true;

// Toggle off all memory
if (Optimize.card.togglesTable.toggleAllMemory) {
if (Optimize.card.togglesTable.toggleAllMemory.isPresent) {
await Optimize.card.togglesTable.toggleAllMemory.toggle();

assert.notOk(Optimize.card.togglesTable.tasks[0].memory.isActive);
assert.notOk(Optimize.card.togglesTable.tasks[1].memory.isActive);
} else if (!Optimize.card.togglesTable.tasks[0].cpu.isDisabled) {
Expand Down

0 comments on commit a6e1f03

Please sign in to comment.