mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-02 04:38:55 +00:00
test(smoke): коммитить размер шрифта пространства через DOM (#639)
Issue: #639 User-Visible: no
This commit is contained in:
@@ -136,7 +136,13 @@ const out = await page.evaluate(async () => {
|
||||
&& Math.abs(sliderBox.right - endsBox.right) <= 1
|
||||
&& endsBox.bottom <= cardFontRange.nextElementSibling.getBoundingClientRect().bottom + 1;
|
||||
o.resetDisabledAt100 = resetLink.disabled === true;
|
||||
c._spaceDialog = { ...c._spaceDialog, cardFontScale: 1.5 }; await upd();
|
||||
const cardFontInput = q('#space-card-font');
|
||||
cardFontInput.value = '150';
|
||||
cardFontInput.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
o.fontDraftWaitsForChange = c._spaceDialog.cardFontScale === 1;
|
||||
cardFontInput.dispatchEvent(new Event('change', { bubbles: true })); await upd();
|
||||
o.fontNumberCommitsThroughDom = c._spaceDialog.cardFontScale === 1.5
|
||||
&& [...qa('.hpf-headline .hpf-link')][0].disabled === false;
|
||||
[...qa('.hpf-headline .hpf-link')][0].click(); await upd();
|
||||
o.resetRestores100 = c._spaceDialog.cardFontScale === 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user