Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Jan 26, 2024
1 parent 3c8679d commit a3eff6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/pw/pages/productQAPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ProductQAPage extends BasePage {
await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.goBack);

// question details elements are visible
const { questionInput, saveQuestion, questionText,...questionDetails } = selector.admin.dokan.productQA.questionDetails.questionDetails; // todo: need to add questiontext
const { questionInput, saveQuestion, questionText, ...questionDetails } = selector.admin.dokan.productQA.questionDetails.questionDetails; // todo: need to add questiontext
await this.multipleElementVisible(questionDetails);

// status elements are visible
Expand Down Expand Up @@ -136,7 +136,9 @@ export class ProductQAPage extends BasePage {
await this.clickAndWaitForResponse(data.subUrls.api.dokan.productQuestions, selector.admin.dokan.productQA.questionDetails.confirmAction);
await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.visibilityStatusSaveSuccessMessage);
action == 'hide' ? await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.status.hiddenStatus) : await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.status.visibleStatus);
action == 'hide' ? await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.status.showInProductPage) : await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.status.hideFromProductPage);
action == 'hide'
? await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.status.showInProductPage)
: await this.toBeVisible(selector.admin.dokan.productQA.questionDetails.status.hideFromProductPage);
}

// delete answer
Expand Down
2 changes: 1 addition & 1 deletion tests/pw/tests/e2e/productQA.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test.describe('Product QA functionality test', () => {
await admin.filterQuestions(data.questionAnswers.filter.byProduct, 'by-product');
});

test.only('admin can edit question @pro', async () => {
test('admin can edit question @pro', async () => {
await admin.editQuestion(questionId, data.questionAnswers);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/pw/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ export const schemas = {
tax_total: z.string(),
status: z.string(),
date: z.string(),
}),
}).or(z.null()),
}),
},

Expand Down

0 comments on commit a3eff6f

Please sign in to comment.