Complete Greatest covers and use Japanese navigation label
This commit is contained in:
1 parent
5df94db9a3
commit
f713d0c0a9
6 files changed
+13
-8
No files matched your search
@@ -42,6 +42,7 @@ async function freePort() {
|
||||
page.on('pageerror', error => errors.push(error.message));
|
||||
await page.goto(base + '/greatest.html');
|
||||
await page.getByRole('heading', { name: 'Shijō Saikō no Manga' }).waitFor();
|
||||
assert.equal(await page.getByRole('link', { name: 'Shijō Saikō no Manga' }).textContent(), 'Shijō Saikō no Manga');
|
||||
assert.equal(await page.locator('.greatest-period').count(), 13);
|
||||
assert.equal(await page.locator('.greatest-tile').count(), 106);
|
||||
const astro = page.locator('.greatest-tile').filter({ hasText: 'Astro Boy' });
|
||||
@@ -54,6 +55,7 @@ async function freePort() {
|
||||
await page.getByRole('dialog').getByText('Community votes: 🔥 1').waitFor();
|
||||
await page.getByRole('dialog').getByRole('button', { name: 'Close' }).click();
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
assert.equal(await page.locator('.nav-greatest').evaluate(el => getComputedStyle(el, '::after').content), '"Saikō"');
|
||||
assert.ok(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth), 'Mobile horizontal overflow');
|
||||
await page.getByRole('button', { name: '📚 In library' }).click();
|
||||
assert.equal(await page.locator('.greatest-tile').count(), 0);
|
||||
|
||||
Reference in new issue
Block a user