本文整理汇总了TypeScript中emberclear/tests/helpers/pages/app.app类的典型用法代码示例。如果您正苦于以下问题:TypeScript app类的具体用法?TypeScript app怎么用?TypeScript app使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了app类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: test
test('an error message appears', function(assert) {
const text = app.toastText();
const expected = 'There was a problem logging in...';
assert.contains(text, expected);
percySnapshot(assert as any);
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:7,代码来源:acceptance-test.ts
示例2: function
hooks.beforeEach(async function() {
// loginForm.submit must not be awaited because it
// calls an ember-concurrency task which will
// also be awaited and not allow us to test the
// side-effects
loginForm.submit();
await app.waitForToast();
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:8,代码来源:acceptance-test.ts
示例3: test
test('a message is displayed', async function(assert) {
await waitFor(app.selectors.toast);
const toastText = app.toast()!.textContent;
assert.ok(
toastText!.match(/not be located/),
'toast is displayed saying the user is not found'
);
percySnapshot(assert as any);
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:12,代码来源:-acceptance-test.ts
示例4: test
test('a toast is displayed', function(assert) {
assert.ok(app.toastText()!.match(/a test message/));
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:3,代码来源:acceptance-test.ts
示例5: skip
skip('confirmation is display', function(assert) {
const text = app.toast()!.textContent!;
assert.ok(text.includes('Identity Updated'));
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:5,代码来源:acceptance-test.ts
示例6: test
test('the top of the page is visible', function(assert) {
const position = app.scrollContainer().scrollTop;
assert.equal(position, 0, 'the scroll container is at the top');
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:5,代码来源:navigation-scroll-to-top-test.ts
示例7:
hooks.afterEach(function() {
(app.scrollContainer()!.style as any) = '';
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:3,代码来源:navigation-scroll-to-top-test.ts
注:本文中的emberclear/tests/helpers/pages/app.app类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论