diff --git a/features/milo/caas.spec.js b/features/milo/caas.spec.js deleted file mode 100644 index 3af978a1..00000000 --- a/features/milo/caas.spec.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - FeatureName: 'CAAS Feature', - features: [ - { - tcid: '0', - name: '@Card Collection', - path: '/drafts/nala/features/caas/caascollection', - data: { - cardsPerPage: 4, - caasTitle: 'Consonant Card Collection Title', - paginator: '1 - 4 of 8 results', - }, - tags: '@caas @smoke @regression @milo', - }, - ], -}; diff --git a/selectors/milo/caas.feature.page.js b/selectors/milo/caas.feature.page.js deleted file mode 100644 index ace768a9..00000000 --- a/selectors/milo/caas.feature.page.js +++ /dev/null @@ -1,10 +0,0 @@ -export default class Caas { - constructor(page) { - this.page = page; - - // caas locators - this.caasCards = this.page.locator('.consonant-Card'); - this.caasTitle = this.page.locator('.consonant-FiltersInfo-title'); - this.caasPaginator = this.page.locator('.consonant-Pagination-summary'); - } -} diff --git a/tests/milo/caas.feature.test.js b/tests/milo/caas.feature.test.js deleted file mode 100644 index 08dcbc35..00000000 --- a/tests/milo/caas.feature.test.js +++ /dev/null @@ -1,43 +0,0 @@ -import { expect, test } from '@playwright/test'; -import { features } from '../../features/milo/caas.spec.js'; -import Caas from '../../selectors/milo/caas.feature.page.js'; - -let caas; -let consoleErrors = []; - -test.describe('Milo CAAS Feature test suite', () => { - test.beforeEach(async ({ page }) => { - caas = new Caas(page); - - page.on('console', (exception) => { - if (exception.type() === 'error') { - consoleErrors.push(exception.text()); - } - }); - }); - - test.afterEach(async () => { - consoleErrors = []; - }); - - // Test 0 : Card Collection - test(`${features[0].name},${features[0].tags}`, async ({ page, baseURL }) => { - console.info(`[Test Page]: ${baseURL}${features[0].path}`); - const { data } = features[0]; - - await test.step('step-1: Go to CAAS collection test page', async () => { - await page.goto(`${baseURL}${features[0].path}`); - await page.waitForLoadState('domcontentloaded'); - await expect(page).toHaveURL(`${baseURL}${features[0].path}`); - }); - - await test.step('step-2: Verify CAAS collection content/specs', async () => { - // verify number of cards in the collection - await expect(await caas.caasCards).toHaveCount(data.cardsPerPage); - - // verify caas title and paginator - await expect(await caas.caasTitle).toContainText(data.caasTitle); - await expect(await caas.caasPaginator).toContainText(data.paginator); - }); - }); -});