feat(testing): Added await to all expect statments and stabalized a few tests

This commit is contained in:
Muhammed Mustafa
2022-10-27 21:29:00 +05:30
parent 93dc4078a7
commit 44becac807
29 changed files with 169 additions and 124 deletions

View File

@@ -56,9 +56,9 @@ export class ImportTemplatePage extends BasePage {
let tblList = await this.getImportTableList();
for (let i = 0; i < result.length; i++) {
expect(tblList[i]).toBe(result[i].name);
await expect(tblList[i]).toBe(result[i].name);
let columnList = await this.getImportColumnList();
expect(columnList).toEqual(result[i].columns);
await expect(columnList).toEqual(result[i].columns);
if (i < result.length - 1) {
await this.expandTableList({ index: i + 1 });
}