Skip to content

Commit 53bbecb

Browse files
committed
fix cypress tests
1 parent 537d44b commit 53bbecb

File tree

5 files changed

+9
-19
lines changed

5 files changed

+9
-19
lines changed

cypress/e2e/46_adminFIlterStatus.cy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ describe('Super Admin Bounty Filter Status Dropdown ', () => {
1010
deliverables: 'We are good to go man'
1111
};
1212

13-
beforeEach(() => {
13+
it('Should create six bounties with different status and verify that changing the bounties filter status displays only bounties with that specific status', () => {
1414
cy.login(activeUser);
15-
cy.wait(1000);
16-
});
15+
cy.wait(3000);
1716

18-
it('Should create six bounties with different status and verify that changing the bounties filter status displays only bounties with that specific status', () => {
1917
for (let i = 1; i <= 4; i++) {
2018
const updatedBounty = { ...bounty, title: `Syeded${i}` };
2119
cy.create_bounty(updatedBounty);

cypress/e2e/47_adminFIlterSortBy.cy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ describe('Super Admin Bounty Filter SortBy', () => {
99
deliverables: 'We are good to go man'
1010
};
1111

12-
beforeEach(() => {
12+
it('Should create six bounties, verify order, change sort, verify new order, and logout', () => {
1313
cy.login(activeUser);
14-
cy.wait(1000);
15-
});
14+
cy.wait(3000);
1615

17-
it('Should create six bounties, verify order, change sort, verify new order, and logout', () => {
1816
for (let i = 1; i <= 6; i++) {
1917
const updatedBounty = { ...bounty, title: `MirzaRef${i}` };
2018
cy.create_bounty(updatedBounty);

cypress/e2e/48_adminBountyClick.cy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ describe('Super Admin Bounty Creation and Verification', () => {
1313
estimate_completion_date: '09/09/2024'
1414
};
1515

16-
beforeEach(() => {
16+
it('Should create six bounties, navigate to the Admin page, verify the second bounty, and logout', () => {
1717
cy.login(activeUser);
18-
cy.wait(1000);
19-
});
18+
cy.wait(3000);
2019

21-
it('Should create six bounties, navigate to the Admin page, verify the second bounty, and logout', () => {
2220
for (let i = 1; i <= 3; i++) {
2321
const updatedBounty = { ...bounty, title: `saithsab${i}` };
2422
cy.create_bounty(updatedBounty);

cypress/e2e/49_adminPaginationNumber.cy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ describe('Super Admin Pagination Bounties List', () => {
1313
deliverables: 'We are good to go man'
1414
};
1515

16-
beforeEach(() => {
16+
it('Should create 22 bounties and verify they are listed in the admin page', () => {
1717
cy.login(activeUser);
18-
cy.wait(1000);
19-
});
18+
cy.wait(3000);
2019

21-
it('Should create 22 bounties and verify they are listed in the admin page', () => {
2220
for (let i = 1; i <= 22; i++) {
2321
const updatedBounty = { ...bounty, title: `Pagination Bounty ${i}` };
2422
cy.create_bounty(updatedBounty);

cypress/e2e/51_viewWorkspaceBounties.cy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ describe('View Workspace Bounties', () => {
2323
assign: ''
2424
};
2525

26-
beforeEach(() => {
26+
it('should verify bounty tile displays the workspace label is clickable and redirects the user to the workspaces bounty page.', () => {
2727
cy.login(workspace.loggedInAs);
2828
cy.wait(1000);
2929
cy.create_workspace(workspace);
3030
cy.wait(1000);
31-
});
3231

33-
it('should verify bounty tile displays the workspace label is clickable and redirects the user to the workspaces bounty page.', () => {
3432
cy.create_bounty(bounty);
3533
cy.wait(5000);
3634

0 commit comments

Comments
 (0)