Skip to content

Commit

Permalink
Fixing failing bounty test cases (gitcoinco#10626)
Browse files Browse the repository at this point in the history
Merging this without approval as I have only fixed test cases
  • Loading branch information
nutrina authored May 24, 2022
1 parent 1d62adb commit 4c83c6f
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions cypress/integration/bounties/test_bounty_creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,8 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
}
});

cy.get('#experience_level').find('.vs__search').click();
cy.contains('Beginner').click();
cy.get('#project_length').find('.vs__search').click();
cy.contains('Hours').click();
cy.get('#experience_level').find('.vs__search').click().type('Beginner{enter}');
cy.get('#project_length').find('.vs__search').click().type('Hours{enter}');

cy.contains('Next').click();

Expand Down Expand Up @@ -594,21 +592,19 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
}
});

cy.get('#experience_level').find('.vs__search').click();
cy.contains('Beginner').click();
cy.get('#project_length').find('.vs__search').click();
cy.contains('Hours').click();
cy.get('#experience_level').find('.vs__search').click().type('Beginner{enter}');
cy.get('#project_length').find('.vs__search').click().type('Hours{enter}');

cy.contains('Next').click();

// Screen 2
cy.contains('Create Custom Bounty').click();

cy.get('#new-bounty-custom-title').type('My Custom Bounty');
cy.get('#new-bounty-custom-editor').type('My custom bounty long long long description');
cy.get('#new-bounty-custom-editor-ext').type('My custom bounty long long long description');

cy.get('#new-bounty-acceptace-criteria').type('Custom bounty acceptance criteria');
cy.get('#new-bounty-resources').type('Custom bounty resource');
cy.get('#new-bounty-acceptace-criteria-editor-ext').type('Custom bounty acceptance criteria');
cy.get('#new-bounty-resources-editor-ext').type('Custom bounty resource');
cy.get('#new-bounty-organisation-url').type('https://github.com/gitcoinco/');

cy.get('.new-bounty-contact-details-form-0').find('.new-bounty-contact-type').find('.vs__search').click().type('Discord{enter}');
Expand All @@ -634,7 +630,7 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
/*
* Screen 4
*/
it('Should validated screen 4 ', () => {
it.only('Should validated screen 4 ', () => {
cy.visit('bounty/new');
cy.wait(1000);

Expand All @@ -652,21 +648,19 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
}
});

cy.get('#experience_level').find('.vs__search').click();
cy.contains('Beginner').click();
cy.get('#project_length').find('.vs__search').click();
cy.contains('Hours').click();
cy.get('#experience_level').find('.vs__search').click().type('Beginner{enter}');
cy.get('#project_length').find('.vs__search').click().type('Hours{enter}');

cy.contains('Next').click();

// Screen 2
cy.contains('Create Custom Bounty').click();

cy.get('#new-bounty-custom-title').type('My Custom Bounty');
cy.get('#new-bounty-custom-editor').type('My custom bounty long long long description');
cy.get('#new-bounty-custom-editor-ext').type('My custom bounty long long long description');

cy.get('#new-bounty-acceptace-criteria').type('Custom bounty acceptance criteria');
cy.get('#new-bounty-resources').type('Custom bounty resource');
cy.get('#new-bounty-acceptace-criteria-editor-ext').type('Custom bounty acceptance criteria');
cy.get('#new-bounty-resources-editor-ext').type('Custom bounty resource');
cy.get('#new-bounty-organisation-url').type('https://github.com/gitcoinco/');

cy.get('.new-bounty-contact-details-form-0').find('.new-bounty-contact-type').find('.vs__search').click().type('Discord{enter}');
Expand Down

0 comments on commit 4c83c6f

Please sign in to comment.