Skip to content

Commit b9c0f01

Browse files
committed
Add the fonts Upload and Install Fonts tabs to the pages matrix.
1 parent 923e7c0 commit b9c0f01

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎tests/e2e/utils/accessibility-pages-matrix.js‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,27 @@ const pages = [
209209
path: '/font-library.php?p=%2Ffont-list',
210210
name: 'Fonts',
211211
waitInterval: true,
212+
stateVariants: [
213+
{
214+
name: 'default',
215+
},
216+
{
217+
name: 'fonts-upload-tab',
218+
setup: async ( page ) => {
219+
const uploadTab = page.getByRole( 'tab', { name: 'Upload' } );
220+
await uploadTab.click();
221+
await page.getByRole( 'tabpanel', { name: 'Upload' } ).isVisible();
222+
},
223+
},
224+
{
225+
name: 'fonts-install-fonts-tab',
226+
setup: async ( page ) => {
227+
const installFontsTab = page.getByRole( 'tab', { name: 'Install Fonts' } );
228+
await installFontsTab.click();
229+
await page.getByRole( 'tabpanel', { name: 'Install Fonts' } ).isVisible();
230+
},
231+
},
232+
],
212233
},
213234

214235
// Plugins.

0 commit comments

Comments
 (0)