Make product name driven from config in the console

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=135399007
This commit is contained in:
mmuller 2016-10-06 13:41:24 -07:00 committed by Ben McIlwain
parent 74369b69be
commit 129cbe8103
6 changed files with 42 additions and 21 deletions

View file

@ -70,7 +70,9 @@ function tearDown() {
function testButter() {
registry.registrar.ConsoleTestUtil.visit(test);
registry.registrar.ConsoleTestUtil.visit(test, {
productName: 'Foo Registry'
});
registry.util.butter('butter msg');
var butter = goog.dom.getElementByClass(goog.getCssName('kd-butterbar'));
assertNotNull(butter.innerHTML.match(/.*butter msg.*/));
@ -90,7 +92,8 @@ function testEppLogin() {
test, {
isEppLoggedIn: true,
testClientId: test.testClientId,
testXsrfToken: test.testXsrfToken
testXsrfToken: test.testXsrfToken,
productName: 'Foo Registry'
}, function() {
test.sessionMock.login(
goog.testing.mockmatchers.isFunction).$does(function() {
@ -109,7 +112,9 @@ function testEppLogin() {
/** Authed user with no path op specified should nav to welcome page. */
function testShowLoginOrDash() {
registry.registrar.ConsoleTestUtil.visit(test);
registry.registrar.ConsoleTestUtil.visit(test, {
productName: 'Foo Registry'
});
assertNotNull(goog.dom.getElement('domain-registrar-dashboard'));
}