From 951a1274adcd1f659675570584adbfc0e6a87211 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Fri, 4 Nov 2016 21:53:16 -0400 Subject: [PATCH] Use correct tabByIndex in autofill tests Auditors: @bsclifton This probably broke because we weren't finding about prefrences tabs correctly before in tabByIndex calls. Since we fixed that, we need to fix wrong callers using wrong a wrong index. There might be follow up similar things that need fixing --- test/components/autofillTest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/components/autofillTest.js b/test/components/autofillTest.js index 4e2895f95fa..8af41e03920 100644 --- a/test/components/autofillTest.js +++ b/test/components/autofillTest.js @@ -435,12 +435,12 @@ describe('Autofill', function () { .click('[name="04fullname"]') .windowByUrl(Brave.browserWindowUrl) .waitForExist('contextMenuItemText', 500, true) - .tabByIndex(0) + .tabByIndex(1) .getValue('[name="04fullname"]').should.eventually.be.equal('') .click('[name="41ccnumber"]') .click('[name="41ccnumber"]') .waitForExist('contextMenuItemText', 500, true) - .tabByIndex(0) + .tabByIndex(1) .getValue('[name="41ccnumber"]').should.eventually.be.equal('') }) }) @@ -609,7 +609,7 @@ describe('Autofill', function () { .click('[name="04fullname"]') .windowByUrl(Brave.browserWindowUrl) .waitForExist('contextMenuItemText', 500, true) - .tabByIndex(0) + .tabByIndex(1) .getValue('[name="04fullname"]').should.eventually.be.equal('') }) })