Commit 54865c6d authored by David Roger's avatar David Roger Committed by Commit Bot

[settings] Remove pre-dice code in sign_out_a11y_tests.js

Dice is now launched and pre-dice codepath can be removed.

Bug: 891781
Change-Id: I15efa40c47b6c164f5aae521f19734390ec138a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013283
Commit-Queue: David Roger <droger@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734414}
parent f85437b9
......@@ -63,30 +63,25 @@ AccessibilityTest.define('SettingsA11ySignOut', {
.$$('settings-people-page');
assert(!!this.peoplePage);
if (this.peoplePage.diceEnabled_) {
sync_test_util.simulateSyncStatus({
signedIn: false,
signinAllowed: true,
syncSystemEnabled: true,
disabled: false,
});
}
},
/** @override */
tests: {
'Accessible Dialog': function() {
let parent = null;
let disconnectButtonSelector = null;
return this.browserProxy.getSyncStatus()
.then(syncStatus => {
// Navigate to the sign out dialog.
Polymer.dom.flush();
if (this.peoplePage.diceEnabled_) {
const syncAccountControl =
this.peoplePage.$$('settings-sync-account-control');
syncAccountControl.syncStatus = {
parent = this.peoplePage.$$('settings-sync-account-control');
parent.syncStatus = {
firstSetupInProgress: false,
signedIn: true,
signedInUsername: 'bar@bar.com',
......@@ -94,16 +89,10 @@ AccessibilityTest.define('SettingsA11ySignOut', {
hasError: false,
disabled: false,
};
parent = syncAccountControl;
disconnectButtonSelector = '#turn-off';
} else {
parent = this.peoplePage;
disconnectButtonSelector = '#disconnectButton';
}
return test_util.waitBeforeNextRender(parent);
})
.then(() => {
disconnectButton = parent.$$(disconnectButtonSelector);
disconnectButton = parent.$$('#turn-off');
assert(!!disconnectButton);
disconnectButton.click();
Polymer.dom.flush();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment