Skip to content

Commit

Permalink
Merge pull request Codeinwp#2770 from Codeinwp/dojo/copyright-test
Browse files Browse the repository at this point in the history
test: adds copyright-component tests
  • Loading branch information
irinelenache authored Apr 13, 2021
2 parents 8d71668 + f8639f9 commit 09d37fc
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 09d37fc

Please sign in to comment.