-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from cardanoapi/refactor/convention-organizers
Refactor/convention organizers
- Loading branch information
Showing
7 changed files
with
98 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
integration_test/tests/1-convention-organizers/conventionOrganizer.invite.spec.ts
This file was deleted.
Oops, something went wrong.
85 changes: 85 additions & 0 deletions
85
integration_test/tests/1-convention-organizers/conventionOrganizer.loggedin.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import { organizerWallet } from '@constants/staticWallets'; | ||
import { setAllureEpic } from '@helpers/allure'; | ||
import { CCVT } from '@mock/index'; | ||
import { expect } from '@playwright/test'; | ||
import { test } from '@fixtures/walletExtension'; | ||
|
||
test.beforeEach(async () => { | ||
await setAllureEpic('1. Convention Organizers'); | ||
}); | ||
|
||
test.use({ storageState: '.auth/organizer.json', wallet: organizerWallet }); | ||
|
||
test.describe('Invitation', () => { | ||
test('1B. Could invite delegates', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
test('1C. Could invite alternates', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
}); | ||
|
||
test.describe('Poll results', () => { | ||
test('1A. Must not edit poll results.', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
|
||
test('1J. Must display vote count durin open poll.', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
|
||
test('1K. Should display vote count after poll ending.', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
|
||
test('1L. Must open polls only after delegates are ready.', async ({ | ||
page, | ||
}) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
|
||
test('1M. Must close polls once voting is completed.', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
}); | ||
|
||
test.describe('Delegate and Alternate Profile', () => { | ||
test('1F. Must have access to update delegate and alternate profile', async ({ | ||
page, | ||
}) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
|
||
test('1I. Must have access to create delegate and alternate profile', async ({ | ||
page, | ||
}) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
}); | ||
|
||
test.describe('Voting Power', () => { | ||
test('1D. Should transfer voting power from delegate to alternate.', async ({ | ||
page, | ||
}) => { | ||
await page.goto('/'); | ||
|
||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
|
||
test('1E. Should transfer voting power from alternate to delegate.', async ({ | ||
page, | ||
}) => { | ||
await page.goto('/'); | ||
|
||
await expect(page).toHaveTitle(CCVT.title); | ||
}); | ||
}); |
16 changes: 0 additions & 16 deletions
16
integration_test/tests/1-convention-organizers/conventionOrganizer.login.spec.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
integration_test/tests/1-convention-organizers/conventionOrganizer.poll.spec.ts
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
integration_test/tests/1-convention-organizers/conventionOrganizer.profile.spec.ts
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...ration_test/tests/1-convention-organizers/conventionOrganizer.transferVotingPower.spec.ts
This file was deleted.
Oops, something went wrong.