Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jer-Sch committed Nov 4, 2021
1 parent 599f136 commit 8680145
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cypress/integration/landing_page/test_products_menu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
describe('Products menu', () => {
before(() => {
cy.setupMetamask();
});

beforeEach(() => {
cy.impersonateUser();
});

afterEach(() => {
cy.logout();
});

after(() => {
cy.clearWindows();
});

it('navigates to the grants explorer when \'Explore Grants\' is selected', () => {
cy.get('#dropdownProducts').trigger('mouseenter');
cy.contains('Grants Crowdfunding for Open Source').trigger('mouseenter');
cy.contains('Explore Grants').click();

cy.url().should('contain', 'grants/explorer');
});
});

0 comments on commit 8680145

Please sign in to comment.