@@ -4,23 +4,30 @@ import { BaseRegistryPlugin } from "./baseRegistryPlugin";
44import { RegistryPO } from "../../page-objects/registryPo" ;
55
66export class QuayUiPlugin extends BaseRegistryPlugin {
7- private quayProvider : ImageRegistry ;
87
98 constructor ( registry : ImageRegistry ) {
109 super ( registry ) ;
11- this . quayProvider = registry ;
1210 }
1311
1412 async checkRepositoryHeading ( page : Page ) : Promise < void > {
15- await expect ( page . getByRole ( 'heading' , { name : `${ RegistryPO . quayRepositoryPrefix } ${ this . quayProvider . getOrganization ( ) } /${ this . quayProvider . getImageName ( ) } ` } ) ) . toBeVisible ( ) ;
13+ await expect ( page . getByRole ( 'heading' , { name : `${ RegistryPO . quayRepositoryPrefix } ${ this . registry . getOrganization ( ) } /${ this . registry . getImageName ( ) } ` } ) ) . toBeVisible ( ) ;
1614 }
1715
1816 async checkRepositoryLink ( page : Page ) : Promise < void > {
19- const repositoryLink = `${ this . quayProvider . getOrganization ( ) } /${ this . quayProvider . getImageName ( ) } ` ;
17+ const repositoryLink = `${ this . registry . getOrganization ( ) } /${ this . registry . getImageName ( ) } ` ;
2018
2119 await expect ( page . getByRole ( 'link' , { name : repositoryLink } ) ) . toBeVisible ( ) ;
2220 }
2321
22+ async checkTableColumnHeaders ( page : Page ) : Promise < void > {
23+ await expect ( page . getByRole ( 'columnheader' , { name : RegistryPO . tagColumnHeader } ) ) . toBeVisible ( ) ;
24+ await expect ( page . getByRole ( 'columnheader' , { name : RegistryPO . lastModifiedColumnHeader } ) ) . toBeVisible ( ) ;
25+ await expect ( page . getByRole ( 'columnheader' , { name : RegistryPO . securityScanColumnHeader } ) ) . toBeVisible ( ) ;
26+ await expect ( page . getByRole ( 'columnheader' , { name : RegistryPO . sizeColumnHeader } ) ) . toBeVisible ( ) ;
27+ await expect ( page . getByRole ( 'columnheader' , { name : RegistryPO . expiresColumnHeader } ) ) . toBeVisible ( ) ;
28+ await expect ( page . getByRole ( 'columnheader' , { name : RegistryPO . manifestColumnHeader } ) ) . toBeVisible ( ) ;
29+ }
30+
2431 async checkVulnerabilities ( page : Page ) : Promise < void > {
2532 const searchInput = page . getByRole ( 'textbox' , { name : RegistryPO . searchPlaceholder } ) ;
2633 await searchInput . fill ( 'build-container' ) ;
@@ -47,7 +54,7 @@ export class QuayUiPlugin extends BaseRegistryPlugin {
4754 await goBackButton . click ( ) ;
4855
4956 // Check that the repository link is visible
50- const repositoryLink = `${ this . quayProvider . getOrganization ( ) } /${ this . quayProvider . getImageName ( ) } ` ;
57+ const repositoryLink = `${ this . registry . getOrganization ( ) } /${ this . registry . getImageName ( ) } ` ;
5158 await expect ( page . getByRole ( 'link' , { name : repositoryLink } ) ) . toBeVisible ( ) ;
5259 }
5360}
0 commit comments