mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
test: check layer counts after lifecycle initialization
This commit is contained in:
1 parent
dec9dd288c
commit
9f6cde79fd
1 file changed
+4
-4
@@ -62,10 +62,6 @@ try {
|
|||||||
row().querySelector('.data-name').textContent ===
|
row().querySelector('.data-name').textContent ===
|
||||||
'<b>Literal layer</b>' && !row().querySelector('b'),
|
'<b>Literal layer</b>' && !row().querySelector('b'),
|
||||||
]);
|
]);
|
||||||
result.push([
|
|
||||||
'count is presented from the supplied snapshot',
|
|
||||||
row().querySelector('.data-count').textContent === '1.3K',
|
|
||||||
]);
|
|
||||||
result.push([
|
result.push([
|
||||||
'row subscription is installed',
|
'row subscription is installed',
|
||||||
typeof listener === 'function',
|
typeof listener === 'function',
|
||||||
@@ -78,6 +74,10 @@ try {
|
|||||||
enabled === 0 && !manager.isEnabled(id),
|
enabled === 0 && !manager.isEnabled(id),
|
||||||
]);
|
]);
|
||||||
await manager.setEnabled(id, true);
|
await manager.setEnabled(id, true);
|
||||||
|
result.push([
|
||||||
|
'count is presented from the supplied snapshot',
|
||||||
|
row().querySelector('.data-count').textContent === '1.3K',
|
||||||
|
]);
|
||||||
result.push([
|
result.push([
|
||||||
'feed state reflects the settled layer snapshot',
|
'feed state reflects the settled layer snapshot',
|
||||||
row().querySelector('.data-toggle-btn').dataset.feedState === 'stale',
|
row().querySelector('.data-toggle-btn').dataset.feedState === 'stale',
|
||||||
|
|||||||
Reference in new issue
Block a user