@@ -11,6 +11,7 @@ test.describe("Columns validations", { tag: "@tier1" }, () => {
1111 await login ( page ) ;
1212 } ) ;
1313
14+ //here
1415 test ( "Columns" , async ( { page } ) => {
1516 const listPage = await PackageListPage . build ( page ) ;
1617
@@ -20,39 +21,42 @@ test.describe("Columns validations", { tag: "@tier1" }, () => {
2021 // Full search
2122 await toolbar . applyTextFilter ( "Filter text" , "keycloak-core" ) ;
2223 await table . waitUntilDataIsLoaded ( ) ;
23- await table . verifyColumnContainsText ( "Name" , "keycloak-core" ) ;
24+ const tableRow = table . getRowsByCellValue ( {
25+ Name : "keycloak-core" ,
26+ Version : "18.0.6.redhat-00001" ,
27+ } ) ;
2428
2529 // Namespace
26- await expect (
27- table . _table . locator ( `td[data-label="Namespace"]` ) ,
28- ) . toContainText ( "org.keycloak" ) ;
30+ await expect ( tableRow . locator ( `td[data-label="Namespace"]` ) ) . toContainText (
31+ "org.keycloak" ,
32+ ) ;
2933
3034 // Version
31- await expect (
32- table . _table . locator ( `td[data-label="Version"]` ) ,
33- ) . toContainText ( "18.0.6.redhat-00001" ) ;
35+ await expect ( tableRow . locator ( `td[data-label="Version"]` ) ) . toContainText (
36+ "18.0.6.redhat-00001" ,
37+ ) ;
3438
3539 // Type
36- await expect ( table . _table . locator ( `td[data-label="Type"]` ) ) . toContainText (
40+ await expect ( tableRow . locator ( `td[data-label="Type"]` ) ) . toContainText (
3741 "maven" ,
3842 ) ;
3943
4044 // Qualifiers
41- await expect (
42- table . _table . locator ( `td[data-label="Qualifiers"]` ) ,
43- ) . toContainText ( "type=jar" ) ;
44- await expect (
45- table . _table . locator ( `td[data-label="Qualifiers"]` ) ,
46- ) . toContainText ( "repository_url=https://maven.repository.redhat.com/ga/" ) ;
45+ await expect ( tableRow . locator ( `td[data-label="Qualifiers"]` ) ) . toContainText (
46+ "type=jar" ,
47+ ) ;
48+ await expect ( tableRow . locator ( `td[data-label="Qualifiers"]` ) ) . toContainText (
49+ "repository_url=https://maven.repository.redhat.com/ga/" ,
50+ ) ;
4751
4852 // Vulnerabilities
4953 await expect (
50- table . _table
54+ tableRow
5155 . locator ( `td[data-label="Vulnerabilities"]` )
5256 . locator ( "div[aria-label='total']" ) ,
5357 ) . toContainText ( "1" ) ;
5458 await expect (
55- table . _table
59+ tableRow
5660 . locator ( `td[data-label="Vulnerabilities"]` )
5761 . locator ( "div[aria-label='medium']" ) ,
5862 ) . toContainText ( "1" ) ;
0 commit comments