Bug 1435892 - Test that the back button is hidden if the basic card page is shown first during on-boarding. r=MattN
authorprathiksha <prathikshaprasadsuman@gmail.com>
Tue, 19 Jun 2018 16:31:31 -0700
changeset 477548 c346e724399d16c5e5a3a66626942da2dd2f0e1f
parent 477547 96496ebab2d9d35e8b855a475195e9a4df877cbc
child 477549 301f7d8a5ba2f6cf0bba236647eb929dd00c6408
push id9385
push userdluca@mozilla.com
push dateFri, 22 Jun 2018 15:47:18 +0000
treeherdermozilla-beta@82a9a1027e2b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1435892
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1435892 - Test that the back button is hidden if the basic card page is shown first during on-boarding. r=MattN MozReview-Commit-ID: 4xl7QuGSnQd
browser/components/payments/test/browser/browser_payments_onboarding_wizard.js
--- a/browser/components/payments/test/browser/browser_payments_onboarding_wizard.js
+++ b/browser/components/payments/test/browser/browser_payments_onboarding_wizard.js
@@ -218,16 +218,20 @@ add_task(async function test_onboarding_
       let header = content.document.querySelector("header");
       ok(content.isVisible(header),
          "Total Header is visible on the basic card page during on-boarding");
       ok(header.textContent, "Total Header contains text");
 
       let cardCancelButton = content.document.querySelector("basic-card-form .cancel-button");
       ok(content.isVisible(cardCancelButton),
          "Cancel button is visible on the basic card page");
+
+      let cardBackButton = content.document.querySelector("basic-card-form .back-button");
+      ok(!content.isVisible(cardBackButton),
+         "Back button is hidden on the basic card page when it is shown first during onboarding");
     });
 
     // Do not await for this task since the dialog may close before the task resolves.
     spawnPaymentDialogTask(frame, () => {
       content.document.querySelector("basic-card-form .cancel-button").click();
     });
 
     await BrowserTestUtils.waitForCondition(() => win.closed, "dialog should be closed");