Update parts page
This commit is contained in:
parent
afe20817df
commit
f8b6d7f372
1 changed files with 0 additions and 11 deletions
|
|
@ -11,17 +11,6 @@ export class PartQuestionsPage extends BasePage {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
}
|
}
|
||||||
|
|
||||||
async validatePartQuestions(partQuestions: IPartQuestion[]) {
|
|
||||||
for (const pq of partQuestions) {
|
|
||||||
const partQuestionOptions = this.page.locator(`fieldset[aria-labelledby="${pq.partQuestionType}"]`);
|
|
||||||
if (pq.isOnPage) {
|
|
||||||
await expect(partQuestionOptions).toBeAttached();
|
|
||||||
} else {
|
|
||||||
await expect(partQuestionOptions).not.toBeAttached();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async selectPartQuestionResponses(partQuestions: IPartQuestion[]) {
|
async selectPartQuestionResponses(partQuestions: IPartQuestion[]) {
|
||||||
for (const pq of partQuestions) {
|
for (const pq of partQuestions) {
|
||||||
const parentobject=this.page.locator(`fieldset[aria-labelledby="${pq.partQuestionType}"]`);
|
const parentobject=this.page.locator(`fieldset[aria-labelledby="${pq.partQuestionType}"]`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue