Neutral sample account names in tests, check scripts and the site's demo UI

The framework moves to 0e344ee.
This commit is contained in:
CRTkafa 2026-10-19 01:02:34 +07:00
parent 83f8c363b4
commit 4c6817ecb5
42 changed files with 136 additions and 136 deletions

View file

@ -21,18 +21,18 @@ const PAGE = `<!doctype html><html><body>
<div role="tablist"><a id="tab" role="tab" href="/home">Following</a></div>
<div data-testid="cellInnerDiv">
<article id="post" data-testid="tweet" tabindex="0" role="article">
<a id="author" href="/playfishies" role="link">Fishies</a>
<a id="permalink" href="/playfishies/status/111" role="link"><time>2h</time></a>
<a id="author" href="/otheraccount" role="link">Sample</a>
<a id="permalink" href="/otheraccount/status/111" role="link"><time>2h</time></a>
<div id="text" data-testid="tweetText">hello <a id="mention" href="/CRTkafa" role="link">@CRTkafa</a> <a id="hashtag" href="/hashtag/tauri" role="link">#tauri</a> <a id="external" href="https://t.co/abc" target="_blank" rel="noopener">t.co/abc</a></div>
<div id="quote" role="link" tabindex="0"><span id="quote-text">quoted</span><a id="quote-permalink" href="/CRTkafa/status/222" role="link"><time>1d</time></a></div>
<div data-testid="tweetPhoto"><a id="photo" href="/playfishies/status/111/photo/1" role="link"><img alt="" width="10" height="10"></a></div>
<div data-testid="tweetPhoto"><a id="photo" href="/otheraccount/status/111/photo/1" role="link"><img alt="" width="10" height="10"></a></div>
<div role="group"><button id="like" data-testid="like">Like</button><div id="reply" role="button" data-testid="reply">Reply</div></div>
</article>
</div>
<div data-testid="cellInnerDiv"><article id="focal" data-testid="tweet" tabindex="-1" role="article"><span id="focal-text">the open post</span><a href="/CRTkafa/status/333" role="link"><time>now</time></a></article></div>
<div data-testid="cellInnerDiv"><div id="usercell" data-testid="UserCell" role="button"><a id="usercell-link" href="/playfishies" role="link">Fishies</a></div></div>
<div data-testid="cellInnerDiv"><div id="usercell" data-testid="UserCell" role="button"><a id="usercell-link" href="/otheraccount" role="link">Sample</a></div></div>
</div></main>
<div id="layers"><div data-testid="HoverCard"><a id="hover-name" href="/playfishies" role="link">Fishies</a><a id="hover-following" href="/playfishies/following" role="link">30 Following</a></div></div>
<div id="layers"><div data-testid="HoverCard"><a id="hover-name" href="/otheraccount" role="link">Sample</a><a id="hover-following" href="/otheraccount/following" role="link">30 Following</a></div></div>
<script>
window.opened = [];
window.open = (url, target, features) => { window.opened.push({ url, target, features }); return null; };
@ -62,14 +62,14 @@ const click = async (selector, mode, options = {}) => {
};
const DIVERTED = [
['#author', 'https://x.com/playfishies'],
['#permalink', 'https://x.com/playfishies/status/111'],
['#text', 'https://x.com/playfishies/status/111'],
['#author', 'https://x.com/otheraccount'],
['#permalink', 'https://x.com/otheraccount/status/111'],
['#text', 'https://x.com/otheraccount/status/111'],
['#mention', 'https://x.com/CRTkafa'],
['#hashtag', 'https://x.com/hashtag/tauri'],
['#quote-text', 'https://x.com/CRTkafa/status/222'],
['#hover-name', 'https://x.com/playfishies'],
['#hover-following', 'https://x.com/playfishies/following'],
['#hover-name', 'https://x.com/otheraccount'],
['#hover-following', 'https://x.com/otheraccount/following'],
];
const IN_PLACE = ['#nav-home', '#nav-profile', '#tab', '#photo', '#like', '#reply', '#focal-text', '#usercell-link', '#external'];