Untitled
unknown
javascript
2 years ago
801 B
8
Indexable
test.describe("Verify each drop down", async () => {
let testDropDownOptions = [
{
droppedOn: "az",
droppedStatus: true,
},
{
droppedOn: "za",
droppedStatus: false,
},
{
droppedOn: "lohi",
droppedStatus: true,
},
{
droppedOn: "hilo",
droppedStatus: false,
},
];
testDropDownOptions.forEach((testDropDownOptions) => {
test(`Verify droppdown by ${testDropDownOptions.droppedOn}`, async ({ page }) => {
let productsWebPage = new ProductsWebPage(page);
await productsWebPage.navAndLogin();
await productsWebPage.selectFromDropDown(testDropDownOptions.droppedOn);
await productsWebPage.checkDropdownStatus(testDropDownOptions.droppedStatus, testDropDownOptions.droppedOn);
});
});
});
Editor is loading...