alessandro trinca tornidor commited on
Commit
74e4412
·
1 Parent(s): 8337554

test: fix and update test cases for changes in lite.koboldai.net

Browse files
Files changed (1) hide show
  1. static/tests/test-helper.ts +3 -3
static/tests/test-helper.ts CHANGED
@@ -372,16 +372,16 @@ export async function initTest({page, workerInfo, filepath, targetUrl = 'http://
372
  await uploadFileWithPageAndFilepath(page, filepath)
373
  // activate wordsearch
374
 
375
- openMobileMenu(page, "#found mobile button for global menu, open it to toggle word search!")
376
 
377
  await page.getByRole('link', { name: 'Settings' }).click();
378
- await page.getByRole('checkbox', { name: 'wordsearch_toggle' }).check();
379
  await page.getByRole('button', { name: 'OK' }).click();
380
  return projectName
381
  }
382
 
383
  export async function openMobileMenu(page: Page, msg: string) {
384
- const mobileButtonGlobalMenu = page.getByRole('button', { name: 'id-mobile-main-menu-options' })
385
  if (await mobileButtonGlobalMenu.isVisible({timeout: 500})) {
386
  await mobileButtonGlobalMenu.click();
387
  await page.waitForTimeout(200)
 
372
  await uploadFileWithPageAndFilepath(page, filepath)
373
  // activate wordsearch
374
 
375
+ await openMobileMenu(page, "#found mobile button for global menu, open it to toggle word search!")
376
 
377
  await page.getByRole('link', { name: 'Settings' }).click();
378
+ await page.getByRole('checkbox', { name: 'WordSearch Tool' }).check();
379
  await page.getByRole('button', { name: 'OK' }).click();
380
  return projectName
381
  }
382
 
383
  export async function openMobileMenu(page: Page, msg: string) {
384
+ const mobileButtonGlobalMenu = page.getByRole('button', { name: 'Main Menu Options' })
385
  if (await mobileButtonGlobalMenu.isVisible({timeout: 500})) {
386
  await mobileButtonGlobalMenu.click();
387
  await page.waitForTimeout(200)