message: simplify deposit test assertion
diff: @@ -44,7 +44,6 @@ module('Acceptance | deposit', function (hooks) {
  setupMirage(hooks);
  test('Initiating workflow without wallet connections', async function (assert) {
  - let ctaButtonsBeforeUnlock: Record<string, string> = {};
  await visit('/card-pay/deposit-withdrawal');
  assert.equal(currentURL(), '/card-pay/deposit-withdrawal');
  await click('[data-test-workflow-button="deposit"]');
  @@ -65,8 +64,9 @@ module('Acceptance | deposit', function (hooks) {
  post = postableSel(0, 3);
  await click(`${post} [data-test-wallet-option="metamask"]`);
  - ctaButtonsBeforeUnlock.mainnetConnection = `${post} [data-test-mainnnet-connection-action-container] [data-test-boxel-button]`;
  - await click(ctaButtonsBeforeUnlock.mainnetConnection);
  + await click(
  + `${post} [data-test-mainnnet-connection-action-container] [data-test-boxel-button]`
  + );
  assert.dom(post).containsText(`Connect your ${c.layer1.fullName} wallet`);
  @@ -152,12 +152,9 @@ module('Acceptance | deposit', function (hooks) {
  .hasText('0x1826...6E44');
  await settled();
  -
  - ctaButtonsBeforeUnlock.layer2Connection = `${postableSel(
  - 1,
  - 2
  - )} [data-test-layer-2-wallet-disconnect-button]`;
  - assert.dom(ctaButtonsBeforeUnlock.layer2Connection).exists();
  + assert
  + .dom(`${postableSel(1, 2)} [data-test-layer-2-wallet-disconnect-button]`)
  + .exists();
  assert
  .dom(milestoneCompletedSel(1))
  @@ -170,9 +167,10 @@ module('Acceptance | deposit', function (hooks) {
  post = postableSel(2, 1);
  // transaction-setup card
  - ctaButtonsBeforeUnlock.transactionSetup = `${post} [data-test-deposit-transaction-setup] [data-test-boxel-button]`;
  await waitFor(`${post} [data-test-balance="DAI"]`);
  - await click(ctaButtonsBeforeUnlock.transactionSetup);
  + await click(
  + `${post} [data-test-deposit-transaction-setup] [data-test-boxel-button]`
  + );
  assert
  .dom(
  `${post} [data-test-deposit-transaction-setup-from-balance="DAI"] [data-test-balance-display-amount]`
  @@ -212,16 +210,20 @@ module('Acceptance | deposit', function (hooks) {
  assert.dom(`${post} [data-test-unlock-etherscan-button]`).doesNotExist();
  - for (let item in ctaButtonsBeforeUnlock) {
  - assert.dom(ctaButtonsBeforeUnlock[item]).isNotDisabled();
  - }
  + assert
  + .dom(
  + `[data-test-boxel-action-chin-state="memorialized"] [data-test-boxel-button].boxel-action-chin__memorialized-action-button[disabled]`
  + )
  + .doesNotExist();
  layer1Service.test__simulateUnlockTxnHash();
  await settled();
  - for (let item in ctaButtonsBeforeUnlock) {
  - assert.dom(ctaButtonsBeforeUnlock[item]).isDisabled();
  - }
  + assert
  + .dom(
  + `[data-test-boxel-action-chin-state="memorialized"] [data-test-boxel-button].boxel-action-chin__memorialized-action-button[disabled]`
  + )
  + .exists({ count: 3 });
  assert.dom(`${post} [data-test-unlock-etherscan-button]`).exists();
  