【发布时间】:2020-12-22 06:03:12
【问题描述】:
我希望能够在 cypress 测试中将测试输入“键入”到 AWS Amplify Authenticator 组件 (amplify-authenticator),如下所示:
describe('My Authenticator Test', () => {
it('should let me type in the username field', () => {
cy.visit('http://localhost:8100/');
cy.get('amplify-authenticator')
.find('input#username')
.type('sample@example.com');
}
}
但是,即使我可以检查元素并看到它:
赛普拉斯测试找不到输入字段。
如何使用 Cypress 访问“用户名”字段(以及其他类似字段)?
【问题讨论】:
标签: angular amazon-web-services testing cypress amplify