在我的Cypress测试中,我试图断言元素的文本带有下划线.
我试图使用以下断言:
homePage.getHeadingWidgetContent().should('have.css', 'text-decoration', 'underline');
但实际的text-decoration
是'underline solid rgba(0, 0, 0, 0.87)');
下面的断言传递:
homePage.getHeadingWidgetContent().should('have.css', 'text-decoration', 'underline solid rgba(0, 0, 0, 0.87)');
有没有一种方法可以断言text-decoration
101"下划线"?