Use the rendered repository return label and open the mobile menu before changing the theme. Allow the rail to contain multiple navigation groups while checking that navigation remains available.
- commit
- ba72f13dcda6d7ae3c8a61124f12e5e1648cda31
- parent
- 204f6c008c44bae54b5311ee92252416343dd8d4
- author
- Dami <dami.etoile@gmail.com>
| M | scripts/ | 3 | ++- |
| M | scripts/ | 2 | +- |
@@ -37,7 +37,7 @@ async page => {
3737 return {links:links.length,url:page.url()};3838 });3939 await run('search GET submission and history', async () => {40- await clickNav('all repositories');40+ await clickNav('← all repositories');4141 await clickNav('/search');4242 await page.locator('#search input[name=q]').fill('fixture');4343 await page.locator('#search').getByRole('button', {name:'Search',exact:true}).click();@@ -119,6 +119,7 @@ async page => {
119119 check(await page.locator('#nav-menu').evaluate(e=>e.open),'morphed menu did not open');120120 await page.keyboard.press('Escape');121121 check(!await page.locator('#nav-menu').evaluate(e=>e.open),'Escape did not close menu');122+ await page.locator('#menu').click();122123 const before = await page.locator('html').getAttribute('data-theme');123124 await page.locator('#theme').click();124125 check(await page.locator('html').getAttribute('data-theme') !== before,'morphed theme button inactive');@@ -40,7 +40,7 @@ async page => {
4040 check(response.ok(), 'HTTP '+response.status());4141 check(await probe.locator('#menu').isVisible(), 'menu control missing');4242 check(!await probe.locator('#rail').isVisible(), 'navigation starts expanded');43- check(await probe.locator('#rail nav').count()===1, 'navigation duplicated');43+ check(await probe.locator('#rail nav').count()>0, 'navigation missing');4444 const before = await probe.locator('#content').boundingBox();4545 check(before.y<80, 'navigation pushes content down');4646 await probe.locator('#menu').click();