Lines Matching refs:modal

15     const modal = await page.getByRole('dialog', { name: 'Search modal' });  constant
20 expect(modal).toBeVisible();
21 return modal;
24 const expectModalToBeHidden = async (page, modal) => {
26 await expect(modal).toBeHidden();
29 const expectOption = async (modal, name) => {
30 await expect(modal.getByRole('option', { name })).toBeVisible();
33 const expectSelectedOption = async (modal, name) => {
34 await expect(modal.getByRole('option', { name, selected: true })).toBeVisible();
51 const modal = await openSearchModal(page); constant
52 const searchInput = modal.getByRole('searchbox', { name: 'Search docs' });
58 const modal = await openSearchModal(page); constant
59 await modal.getByRole('button', { name: 'Close' }).click();
60 await expectModalToBeHidden(page, modal);
64 const modal = await openSearchModal(page); constant
65 await modal.getByRole('button', { name: 'Close' }).click();
66 await expectModalToBeHidden(page, modal);
74 const modal = await openSearchModal(page); constant
76 await expectModalToBeHidden(page, modal);
80 const modal = await openSearchModal(page); constant
82 await expectModalToBeHidden(page, modal);
86 const modal = await openSearchModal(page); constant
87 await modal.getByRole('searchbox').fill('array');
89 await modal.getByRole('listbox', { name: 'Search results' }).getByRole('option')
94 const modal = await openSearchModal(page); constant
95 await modal.getByRole('searchbox').fill('strlen');
96 await expectOption(modal, /^strlen$/);
99 await expectSelectedOption(modal, /^strlen$/);
104 await expectSelectedOption(modal, /^mb_strlen$/);
107 await expectSelectedOption(modal, /^iconv_strlen$/);
111 const modal = await openSearchModal(page); constant
112 await modal.getByRole('searchbox').fill('strpos');
113 await expectOption(modal, /^strpos$/);
121 const modal = await openSearchModal(page); constant
122 await modal.getByRole('searchbox').fill('php basics');