@@ -8,7 +8,7 @@ test.describe('Projects homepage @readonly', function () {
8
8
await page . goto ( url , { waitUntil : 'networkidle' } ) ;
9
9
} ) ;
10
10
11
- test ( 'should display project metadata (cold cache) ' , async function ( { page } ) {
11
+ test ( 'should have project metadata' , async function ( { page } ) {
12
12
13
13
let project = page . locator (
14
14
'.liz-repository-project-item'
@@ -27,19 +27,6 @@ test.describe('Projects homepage @readonly', function () {
27
27
await expect ( project ) . toHaveAttribute (
28
28
"data-lizmap-abstract" , 'This is an abstract' ) ;
29
29
30
- const allMetadata = await project . locator ( '.liz-project-desc' ) ;
31
- await expect ( allMetadata ) . not . toBeVisible ( ) ;
32
-
33
- await project . hover ( ) ;
34
- // await expect(allMetadata).toBeVisible();
35
- await expect ( allMetadata . locator ( '.title' ) ) . toContainText ( 'Test tags: nature, flower' ) ;
36
- await expect ( allMetadata . locator ( '.abstract' ) ) . toContainText ( 'This is an abstract' ) ;
37
- await expect ( allMetadata . locator ( '.keywordList' ) ) . toContainText ( 'nature, flower' ) ;
38
-
39
- // hover on header
40
- await page . locator ( '#headermenu' ) . hover ( ) ;
41
- await expect ( allMetadata ) . not . toBeVisible ( ) ;
42
-
43
30
// another project
44
31
project = page . locator (
45
32
'.liz-repository-project-item'
@@ -57,52 +44,5 @@ test.describe('Projects homepage @readonly', function () {
57
44
"data-lizmap-title" , 'Tests tags: nature, tree' ) ;
58
45
await expect ( project ) . toHaveAttribute (
59
46
"data-lizmap-abstract" , 'Tags: nature, tree' ) ;
60
-
61
- const allMetadataTree = project . locator ( '.liz-project-desc' ) ;
62
- await expect ( allMetadataTree ) . not . toBeVisible ( ) ;
63
-
64
- await project . hover ( ) ;
65
- // await expect(allMetadataTree).toBeVisible();
66
- await expect ( allMetadataTree . locator ( '.title' ) ) . toContainText ( 'Tests tags: nature, tree' ) ;
67
- await expect ( allMetadataTree . locator ( '.abstract' ) ) . toContainText ( 'Tags: nature, tree' ) ;
68
- await expect ( allMetadataTree . locator ( '.keywordList' ) ) . toContainText ( 'nature, tree' ) ;
69
-
70
- // hover on header
71
- await page . locator ( '#headermenu' ) . hover ( ) ;
72
- await expect ( allMetadataTree ) . not . toBeVisible ( ) ;
73
-
74
- } ) ;
75
-
76
- test ( 'should display project metadata (hot cache)' , async function ( { page } ) {
77
-
78
- const project = page . locator (
79
- '.liz-repository-project-item'
80
- ) . filter (
81
- { hasText : 'Test tags: nature, flower' }
82
- ) . locator ( '.liz-project' ) ;
83
-
84
- await expect ( project ) . toHaveAttribute (
85
- "data-lizmap-proj" , 'EPSG:4326' ) ;
86
- await expect ( project ) . toHaveAttribute (
87
- "data-lizmap-bbox" , '-1.2459627329192546, -1.0, 1.2459627329192546, 1.0' ) ;
88
- await expect ( project ) . toHaveAttribute (
89
- "data-lizmap-keywords" , 'nature, flower' ) ;
90
- await expect ( project ) . toHaveAttribute (
91
- "data-lizmap-title" , 'Test tags: nature, flower' ) ;
92
- await expect ( project ) . toHaveAttribute (
93
- "data-lizmap-abstract" , 'This is an abstract' ) ;
94
- const allMetadata = project . locator ( '.liz-project-desc' ) ;
95
- await expect ( allMetadata ) . not . toBeVisible ( ) ;
96
-
97
- await project . hover ( ) ;
98
- // await expect(allMetadata).toBeVisible();
99
- await expect ( allMetadata . locator ( '.title' ) ) . toContainText ( 'Test tags: nature, flower' ) ;
100
- await expect ( allMetadata . locator ( '.abstract' ) ) . toContainText ( 'This is an abstract' ) ;
101
- await expect ( allMetadata . locator ( '.keywordList' ) ) . toContainText ( 'nature, flower' ) ;
102
-
103
- // hover on header
104
- await page . locator ( '#headermenu' ) . hover ( ) ;
105
- await expect ( allMetadata ) . not . toBeVisible ( ) ;
106
-
107
47
} ) ;
108
48
} ) ;
0 commit comments