diff --git a/integration_test/tests/1-convention-organizers/invite.spec.ts b/integration_test/tests/1-convention-organizers/conventionOrganizer.invite.spec.ts similarity index 100% rename from integration_test/tests/1-convention-organizers/invite.spec.ts rename to integration_test/tests/1-convention-organizers/conventionOrganizer.invite.spec.ts diff --git a/integration_test/tests/1-convention-organizers/login.spec.ts b/integration_test/tests/1-convention-organizers/conventionOrganizer.login.spec.ts similarity index 100% rename from integration_test/tests/1-convention-organizers/login.spec.ts rename to integration_test/tests/1-convention-organizers/conventionOrganizer.login.spec.ts diff --git a/integration_test/tests/1-convention-organizers/poll.spec.ts b/integration_test/tests/1-convention-organizers/conventionOrganizer.poll.spec.ts similarity index 100% rename from integration_test/tests/1-convention-organizers/poll.spec.ts rename to integration_test/tests/1-convention-organizers/conventionOrganizer.poll.spec.ts diff --git a/integration_test/tests/1-convention-organizers/userProfiles.spec.ts b/integration_test/tests/1-convention-organizers/conventionOrganizer.profile.spec.ts similarity index 100% rename from integration_test/tests/1-convention-organizers/userProfiles.spec.ts rename to integration_test/tests/1-convention-organizers/conventionOrganizer.profile.spec.ts diff --git a/integration_test/tests/1-convention-organizers/transferVotingPower.spec.ts b/integration_test/tests/1-convention-organizers/conventionOrganizer.transferVotingPower.spec.ts similarity index 100% rename from integration_test/tests/1-convention-organizers/transferVotingPower.spec.ts rename to integration_test/tests/1-convention-organizers/conventionOrganizer.transferVotingPower.spec.ts diff --git a/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.registration.spec.ts b/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.registration.spec.ts new file mode 100644 index 0000000..807a4b0 --- /dev/null +++ b/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.registration.spec.ts @@ -0,0 +1,16 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('2. Constitutional Delegates'); +}); + +test.describe('Delegate Registration', () => { + test('2E. Must be able to view their registration status', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); + diff --git a/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.viewVote.spec.ts b/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.viewVote.spec.ts new file mode 100644 index 0000000..e7b5500 --- /dev/null +++ b/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.viewVote.spec.ts @@ -0,0 +1,26 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('2. Constitutional Delegates'); +}); + +test.describe('Delegate View Vote', () => { + + test('2F. Must be able to view vote result and its count', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('2G. Must be able to view own vote during open poll', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('2I. Should not be able to view poll result before poll closing', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); +}); + diff --git a/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.vote.spec.ts b/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.vote.spec.ts new file mode 100644 index 0000000..9b4ce02 --- /dev/null +++ b/integration_test/tests/2-constitutional-delegates/constitutionalDelegate.vote.spec.ts @@ -0,0 +1,40 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('2. Constitutional Delegates'); +}); + +test.describe('Delegate Vote', () => { + test('2A. Must be able to vote No so that poll reruns', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('2B. Must be able to vote No, Yes or Abstain', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('2C. Must be able to choose not to vote', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + test('2D. Should be able to vote remotely', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('2H. Should be able to change vote during open poll', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('2J. Must have only one vote per poll', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); + diff --git a/integration_test/tests/3-alternates/alternate.registration.spec.ts b/integration_test/tests/3-alternates/alternate.registration.spec.ts new file mode 100644 index 0000000..60b9057 --- /dev/null +++ b/integration_test/tests/3-alternates/alternate.registration.spec.ts @@ -0,0 +1,17 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('3. Alternates'); +}); + +test.describe('Alternate Registration', () => { + + test('3A. Must be able to view their registration status', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); + diff --git a/integration_test/tests/3-alternates/alternates.viewvote.spec.ts b/integration_test/tests/3-alternates/alternates.viewvote.spec.ts new file mode 100644 index 0000000..63ebb29 --- /dev/null +++ b/integration_test/tests/3-alternates/alternates.viewvote.spec.ts @@ -0,0 +1,22 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('3. Alternates'); +}); + +test.describe('Alternate View Vote', () => { + + test('3C. Must be able to view vote result and its count.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('3D. Must be able to view own vote during open poll', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); + diff --git a/integration_test/tests/3-alternates/alternates.vote.spec.ts b/integration_test/tests/3-alternates/alternates.vote.spec.ts new file mode 100644 index 0000000..e30a359 --- /dev/null +++ b/integration_test/tests/3-alternates/alternates.vote.spec.ts @@ -0,0 +1,26 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('3. Alternates'); +}); + +test.describe('Alternate Vote', () => { + + test('3A. Must not be able to vote while delegate is present.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('3E. Should be able to change vote during open poll', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('3F. Must have only one vote per poll', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); +}); + diff --git a/integration_test/tests/4-community-members/communityMembers.pollStatus.spec.ts b/integration_test/tests/4-community-members/communityMembers.pollStatus.spec.ts new file mode 100644 index 0000000..591586c --- /dev/null +++ b/integration_test/tests/4-community-members/communityMembers.pollStatus.spec.ts @@ -0,0 +1,17 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('4. Community Members'); +}); + +test.describe('View Poll Status', () => { + + test('4G. Must be able to view vote result and its count.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); + diff --git a/integration_test/tests/4-community-members/communityMembers.viewProfile.spec.ts b/integration_test/tests/4-community-members/communityMembers.viewProfile.spec.ts new file mode 100644 index 0000000..93adda4 --- /dev/null +++ b/integration_test/tests/4-community-members/communityMembers.viewProfile.spec.ts @@ -0,0 +1,38 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('4. Community Members'); +}); + +test.describe('View Voter Profile', () => { + + test('4C. Must be able to view voters profile.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + + test('4D. Must be able to view delegate workspace name in profile.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('4E. Could associate email with delegate profiles.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('4F. Must have vote data linked to voter profile.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + + test('4I. Should be able to view public information of voter.', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); + diff --git a/integration_test/tests/4-community-members/communityMembers.viewVote.spec.ts b/integration_test/tests/4-community-members/communityMembers.viewVote.spec.ts new file mode 100644 index 0000000..cb50b0e --- /dev/null +++ b/integration_test/tests/4-community-members/communityMembers.viewVote.spec.ts @@ -0,0 +1,17 @@ +import { setAllureEpic } from '@helpers/allure'; +import { CCVT } from '@mock/index'; +import { expect, test } from '@playwright/test'; + +test.beforeEach(async () => { + await setAllureEpic('4. Community Members'); +}); + +test.describe('View Vote Status', () => { + + test('4H. Should be able to view poll status', async ({ page }) => { + await page.goto('/'); + await expect(page).toHaveTitle(CCVT.title); + }); + +}); +