Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayane Mirijanyan authored and Gayane Mirijanyan committed Jun 5, 2024
1 parent 43c1e54 commit 0b25e02
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions features/milo/caas.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module.exports = {
features: [

Check failure on line 3 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 2 spaces but found 4. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 2 spaces but found 4.","line":3,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":3,"endColumn":5,"fix":{"range":[52,56],"text":" "}}
{

Check failure on line 4 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 4 spaces but found 8. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 4 spaces but found 8.","line":4,"column":1,"nodeType":"Punctuator","messageId":"wrongIndentation","endLine":4,"endColumn":9,"fix":{"range":[68,76],"text":" "}}
tcid: '0',

Check failure on line 5 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 6 spaces but found 8. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 6 spaces but found 8.","line":5,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":5,"endColumn":9,"fix":{"range":[78,86],"text":" "}}
name: '@CAAS collection',
path: '/drafts/nala/blocks/caas/caascollection',
name: '@Card Collection',

Check failure on line 6 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 6 spaces but found 8. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 6 spaces but found 8.","line":6,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":6,"endColumn":9,"fix":{"range":[97,105],"text":" "}}
path: '/drafts/nala/features/caas/caascollection',

Check failure on line 7 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 6 spaces but found 8. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 6 spaces but found 8.","line":7,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":7,"endColumn":9,"fix":{"range":[131,139],"text":" "}}
data: {

Check failure on line 8 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 6 spaces but found 8. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 6 spaces but found 8.","line":8,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":8,"endColumn":9,"fix":{"range":[190,198],"text":" "}}
cardsPerPage: 4,

Check failure on line 9 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 8 spaces but found 12. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 8 spaces but found 12.","line":9,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":9,"endColumn":13,"fix":{"range":[206,218],"text":" "}}
caasTitle: 'Consonant Card Collection Title',

Check failure on line 10 in features/milo/caas.spec.js

View workflow job for this annotation

GitHub Actions / Running eslint

[eslint] reported by reviewdog 🐶 Expected indentation of 8 spaces but found 12. Raw Output: {"ruleId":"indent","severity":2,"message":"Expected indentation of 8 spaces but found 12.","line":10,"column":1,"nodeType":"Identifier","messageId":"wrongIndentation","endLine":10,"endColumn":13,"fix":{"range":[235,247],"text":" "}}
Expand Down
4 changes: 2 additions & 2 deletions selectors/milo/caas.feature.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default class Caas {
this.page = page;

//caas locators
this.caasCards = this.page.locator('.consonant-card').nth(nth);
this.caasCards = this.page.locator('.consonant-Card').nth(nth);
this.caasTitle = this.page.locator('.consonant-FiltersInfo-title');
this.caasPaginator = this.page.locator('.cconsonant-Pagination-summary');
this.caasPaginator = this.page.locator('.consonant-Pagination-summary');
}
}
12 changes: 6 additions & 6 deletions tests/milo/caas.feature.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let webUtil;
let caas;
let consoleErrors = [];

const miloLibs = process.env.MILO_LIBS || '';
//const miloLibs = process.env.MILO_LIBS || '';

test.describe("Milo CAAS Feature test suite", () => {
test.beforeEach(async ({ page }) => {
Expand All @@ -25,20 +25,20 @@ test.describe("Milo CAAS Feature test suite", () => {
consoleErrors = [];
});

// Test 0 : CAAS collection
// Test 0 : Card Collection
test(`${features[0].name},${features[0].tags}`, async ({ page, baseURL }) => {
console.info(`[Test Page]: ${baseURL}${features[0].path}${miloLibs}`);
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}${miloLibs}`);
await page.goto(`${baseURL}${features[0].path}`);
await page.waitForLoadState('domcontentloaded');
await expect(page).toHaveURL('${baseURL}${features[0].path}');
await expect(page).toHaveURL(`${baseURL}${features[0].path}`);
});

await test.step('step-2: Verify CAAS collection content/specs', async () => {
await expect(await caas.caasCards).toBeVisible();
await expect(await caas.caasCards).toHaveCount(data.cardsPerPage);
//await expect(await caas.caasCards).toHaveCount(data.cardsPerPage);

// verify caas title and paginator
await expect(await caas.caasTitle).toContainText(data.caasTitle);
Expand Down

0 comments on commit 0b25e02

Please sign in to comment.