Skip to content
Snippets Groups Projects
Commit 40ed8364 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: fix e2e tests after regression fix

parent 0d87f517
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,10 @@ describe('> selecting regions', () => {
const newPage = new AtlasPage()
await newPage.init()
await newPage.goto(url)
const texts = await newPage.getAllChipsText()
expect(texts.length).toEqual(2)
expect(texts).toContain(CONST.MULTI_REGION_SELECTION)
const allChipsVisibility = await newPage.getAllChipsVisibility()
expect(allChipsVisibility.filter(v => !!v).length).toEqual(2)
const allChipsText = await newPage.getAllChipsText()
expect(allChipsText).toContain(CONST.MULTI_REGION_SELECTION)
})
})
})
......@@ -210,6 +210,17 @@ class WdLayoutPage extends WdBase{
return texts
}
async getAllChipsVisibility(){
const visibility = []
const webEls = await this._getChips()
for (const el of webEls) {
visibility.push(
await el.isDisplayed()
)
}
return visibility
}
/**
* Other
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment