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,47 +63,36 @@ AccessibilityTest.define('SettingsA11ySignOut', { ...@@ -63,47 +63,36 @@ AccessibilityTest.define('SettingsA11ySignOut', {
.$$('settings-people-page'); .$$('settings-people-page');
assert(!!this.peoplePage); assert(!!this.peoplePage);
if (this.peoplePage.diceEnabled_) { sync_test_util.simulateSyncStatus({
sync_test_util.simulateSyncStatus({ signedIn: false,
signedIn: false, signinAllowed: true,
signinAllowed: true, syncSystemEnabled: true,
syncSystemEnabled: true, disabled: false,
disabled: false, });
});
}
}, },
/** @override */ /** @override */
tests: { tests: {
'Accessible Dialog': function() { 'Accessible Dialog': function() {
let parent = null; let parent = null;
let disconnectButtonSelector = null;
return this.browserProxy.getSyncStatus() return this.browserProxy.getSyncStatus()
.then(syncStatus => { .then(syncStatus => {
// Navigate to the sign out dialog. // Navigate to the sign out dialog.
Polymer.dom.flush(); Polymer.dom.flush();
if (this.peoplePage.diceEnabled_) { parent = this.peoplePage.$$('settings-sync-account-control');
const syncAccountControl = parent.syncStatus = {
this.peoplePage.$$('settings-sync-account-control'); firstSetupInProgress: false,
syncAccountControl.syncStatus = { signedIn: true,
firstSetupInProgress: false, signedInUsername: 'bar@bar.com',
signedIn: true, statusAction: settings.StatusAction.NO_ACTION,
signedInUsername: 'bar@bar.com', hasError: false,
statusAction: settings.StatusAction.NO_ACTION, disabled: false,
hasError: false, };
disabled: false,
};
parent = syncAccountControl;
disconnectButtonSelector = '#turn-off';
} else {
parent = this.peoplePage;
disconnectButtonSelector = '#disconnectButton';
}
return test_util.waitBeforeNextRender(parent); return test_util.waitBeforeNextRender(parent);
}) })
.then(() => { .then(() => {
disconnectButton = parent.$$(disconnectButtonSelector); disconnectButton = parent.$$('#turn-off');
assert(!!disconnectButton); assert(!!disconnectButton);
disconnectButton.click(); disconnectButton.click();
Polymer.dom.flush(); 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