mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
Merge pull request #1159 from asturksever/fix/street-level-gate-pill-race
test(street-level): settle coverage before reading the ON/OFF pill
This commit is contained in:
1 file changed
+7
@@ -1687,6 +1687,13 @@ async function main() {
|
|||||||
await step(
|
await step(
|
||||||
'the header ON/OFF pill switches the layer off and on',
|
'the header ON/OFF pill switches the layer off and on',
|
||||||
async () => {
|
async () => {
|
||||||
|
// Tiles requested while the credit painted can flip the pill back
|
||||||
|
// to LOADING, so let coverage settle before reading it.
|
||||||
|
await waitForCoverage(page);
|
||||||
|
await settle(
|
||||||
|
page,
|
||||||
|
() => document.getElementById('sl-status').textContent === 'ON',
|
||||||
|
);
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await page.$eval('#sl-status', (node) =>
|
await page.$eval('#sl-status', (node) =>
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in new issue
Block a user