Skip to content

Commit 4c83c6f

Browse files
authored
Fixing failing bounty test cases (#10626)
Merging this without approval as I have only fixed test cases
1 parent 1d62adb commit 4c83c6f

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

cypress/integration/bounties/test_bounty_creation.js

+13-19
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,8 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
488488
}
489489
});
490490

491-
cy.get('#experience_level').find('.vs__search').click();
492-
cy.contains('Beginner').click();
493-
cy.get('#project_length').find('.vs__search').click();
494-
cy.contains('Hours').click();
491+
cy.get('#experience_level').find('.vs__search').click().type('Beginner{enter}');
492+
cy.get('#project_length').find('.vs__search').click().type('Hours{enter}');
495493

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

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

597-
cy.get('#experience_level').find('.vs__search').click();
598-
cy.contains('Beginner').click();
599-
cy.get('#project_length').find('.vs__search').click();
600-
cy.contains('Hours').click();
595+
cy.get('#experience_level').find('.vs__search').click().type('Beginner{enter}');
596+
cy.get('#project_length').find('.vs__search').click().type('Hours{enter}');
601597

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

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

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

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

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

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

655-
cy.get('#experience_level').find('.vs__search').click();
656-
cy.contains('Beginner').click();
657-
cy.get('#project_length').find('.vs__search').click();
658-
cy.contains('Hours').click();
651+
cy.get('#experience_level').find('.vs__search').click().type('Beginner{enter}');
652+
cy.get('#project_length').find('.vs__search').click().type('Hours{enter}');
659653

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

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

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

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

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

0 commit comments

Comments
 (0)