Skip to content

Commit

Permalink
test: adds copyright-component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irinelenache committed Apr 13, 2021
1 parent 37f6458 commit f8639f9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"footer_copyright_content": "This is a test {current_year}",
"footer_copyright_color": "#e30606"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
describe('Copyright component test', function () {
before('Sets up the copyright component in footer', function () {
cy.fixture('customizer/hfg/hfg-copyright-component-setup').then((componentSetup) => {
cy.setCustomizeSettings(componentSetup);
});
});

it('Checks the copyright component in front-end', function () {
cy.visit('/');
cy.contains('This is a test ' + new Date().getFullYear()).should(
'have.css',
'color',
'rgb(227, 6, 6)',
);
});
});

0 comments on commit f8639f9

Please sign in to comment.