mirror of
https://github.com/google/nomulus.git
synced 2025-07-22 18:55:58 +02:00
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:
parent
74369b69be
commit
129cbe8103
6 changed files with 42 additions and 21 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue