本文整理汇总了TypeScript中ember-percy.percySnapshot函数的典型用法代码示例。如果您正苦于以下问题:TypeScript percySnapshot函数的具体用法?TypeScript percySnapshot怎么用?TypeScript percySnapshot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了percySnapshot函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: test
test('inputs are disabled', function(assert) {
// assert.equal(chat.messages.all().length, 0, 'history is blank');
// assert.ok(chat.textarea.isDisabled(), 'textarea is disabled');
assert.ok(chat.submitButton.isDisabled(), 'submitButton is disabled');
percySnapshot(assert as any);
});
示例2: 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);
});
示例3: test
test('1 message is unread', function(assert) {
assert.ok(page.headerUnread.isPresent, 'indicator is rendered');
assert.ok(
page.headerUnread.text.includes('1'),
`has one unread message. detected text: ${page.headerUnread.text}`
);
percySnapshot(assert as any);
});