@@ -10,6 +10,23 @@ test.describe('Configuration detail flow', () => {
1010 await deleteAllConfigurations ( ) ;
1111 } ) ;
1212
13+ test ( 'Validate code set table appearance' , async ( {
14+ page,
15+ configurationsPage,
16+ configurationPage,
17+ } ) => {
18+ const condition = 'Anotia' ;
19+ await configurationsPage . createConfiguration ( condition ) ;
20+ await configurationPage . goToBuildTab ( ) ;
21+ await page . getByLabel ( 'View TES code set information for Anotia' ) . click ( ) ;
22+
23+ await expect ( page . getByRole ( 'columnheader' ) ) . toHaveText ( [
24+ 'Code' ,
25+ 'Code system' ,
26+ 'Display name' ,
27+ ] ) ;
28+ } ) ;
29+
1330 test ( 'Check code set status and individual grouper statuses' , async ( {
1431 page,
1532 configurationsPage,
@@ -272,6 +289,9 @@ test.describe('Configuration detail flow', () => {
272289 await test . step ( 'Configure standard sections' , async ( ) => {
273290 await test . step ( 'Select and check options' , async ( ) => {
274291 await page . getByRole ( 'button' , { name : 'Sections' } ) . click ( ) ;
292+
293+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
294+
275295 const admissionDiagnosisCheckboxText = 'Include Admission Diagnosis' ;
276296 await page
277297 . getByRole ( 'checkbox' , { name : admissionDiagnosisCheckboxText } )
@@ -353,6 +373,8 @@ test.describe('Configuration detail flow', () => {
353373 await configurationPage . goToBuildTab ( ) ;
354374 await configurationPage . deleteCodeSet ( additionalCodeSetName ) ;
355375
376+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
377+
356378 await page . getByRole ( 'button' , { name : 'Custom codes' } ) . click ( ) ;
357379 await configurationPage . deleteCustomCode ( customCodeName ) ;
358380 await expect ( page . getByText ( 'Deleted code' ) ) . toBeVisible ( ) ;
@@ -363,6 +385,9 @@ test.describe('Configuration detail flow', () => {
363385
364386 await test . step ( 'Delete custom section' , async ( ) => {
365387 await page . getByRole ( 'button' , { name : 'Sections' } ) . click ( ) ;
388+
389+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
390+
366391 await page
367392 . getByRole ( 'button' , {
368393 name : `Delete custom section ${ customSectionName } ` ,
@@ -402,7 +427,11 @@ test.describe('Configuration detail flow', () => {
402427
403428 await test . step ( 'Upload custom code CSV' , async ( ) => {
404429 await page . getByRole ( 'button' , { name : 'Custom codes' } ) . click ( ) ;
430+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
431+
405432 await page . getByRole ( 'button' , { name : 'Import from CSV' } ) . click ( ) ;
433+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
434+
406435 await expect (
407436 page . getByRole ( 'heading' , {
408437 name : 'Import from CSV' ,
@@ -419,6 +448,9 @@ test.describe('Configuration detail flow', () => {
419448 const deleteAllButton = page . getByRole ( 'button' , {
420449 name : 'Undo & delete codes' ,
421450 } ) ;
451+
452+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
453+
422454 await expect ( saveAllButton ) . toBeVisible ( ) ;
423455 await expect ( deleteAllButton ) . toBeVisible ( ) ;
424456
@@ -438,6 +470,8 @@ test.describe('Configuration detail flow', () => {
438470 await expect ( deleteButton ) . toBeVisible ( ) ;
439471
440472 await editButton . click ( ) ;
473+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
474+
441475 await expect (
442476 page . getByRole ( 'heading' , { name : 'Edit 12345' , level : 2 } )
443477 ) . toBeVisible ( ) ;
@@ -472,6 +506,8 @@ test.describe('Configuration detail flow', () => {
472506 level : 2 ,
473507 } )
474508 ) . toBeVisible ( ) ;
509+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
510+
475511 await page . getByRole ( 'button' , { name : 'Yes, save codes' } ) . click ( ) ;
476512
477513 const savedCodeTableRows = page . locator ( 'table tbody tr' ) ;
@@ -483,6 +519,8 @@ test.describe('Configuration detail flow', () => {
483519
484520 await test . step ( 'Activate modified draft' , async ( ) => {
485521 await configurationPage . goToActivateTab ( ) ;
522+ await expect ( makeAxeBuilder ) . toHaveNoAxeViolations ( ) ;
523+
486524 await expect ( page . getByText ( 'Switch to version 2' ) ) . toBeVisible ( ) ;
487525 await expect ( page . getByText ( 'Turn off configuration' ) ) . toBeVisible ( ) ;
488526
0 commit comments