Skip to content

Commit d76cce9

Browse files
committed
Test form meta
1 parent 643bfbc commit d76cce9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

cypress/e2e/EXAMPLE.cy.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ describe('Test EXAMPLE config', () => {
1919
cy.clearOPFS();
2020
});
2121

22+
it('form meta: title', () => {
23+
cy.title().should('eq', 'Form example');
24+
});
25+
26+
it('form meta: logo', () => {
27+
cy.get('img.logo')
28+
.should('be.visible')
29+
.and(($img) => {
30+
expect($img[0].naturalWidth).to.be.greaterThan(0);
31+
});
32+
});
33+
34+
it('form meta: custom CSS', () => {
35+
cy.get("html")
36+
.should(
37+
'have.css',
38+
'background-color',
39+
'rgb(213, 245, 255)' // RGB for HEX from custom.css #d5f5ff
40+
);
41+
});
42+
2243
it('"static fieldset" link is clicked and its label becomes visible', () => {
2344
cy.contains('Static elements').click();
2445
cy.get('#fieldset0\\.fieldset_static > div.label').should('be.visible');

0 commit comments

Comments
 (0)