-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: corrected catalogue status mappings (#3529)
* fix: adjusted tooltip descriptions * fix: corrected partial status mapping * feat: init unit test for status
- Loading branch information
1 parent
1625ce1
commit ed881ff
Showing
4 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Harmonization details test | ||
* Determine if the first status in the table has a valid status | ||
*/ | ||
|
||
import { test, expect } from '@playwright/test'; | ||
|
||
const enableRejectCookiesClick = false; | ||
|
||
const statusPatterns = new RegExp(/^(complete|partial|unmapped)$/); | ||
|
||
test('harmonization cell has valid status @variables-view @harmonization @harmonization-matrix', async ({ page }) => { | ||
await page.goto('/catalogue-demo/ssr-catalogue/ATHLETE/variables/ath_ndvi100_mean_0-ATHLETE_CDM-urban_ath-ATHLETE_CDM?keys={"name":"ath_ndvi100_mean_0","resource":{"id":"ATHLETE_CDM"},"dataset":{"name":"urban_ath","resource":{"id":"ATHLETE_CDM"}}}'); | ||
|
||
if (enableRejectCookiesClick) { | ||
await page.getByRole('button', { name: 'Reject' }).click(); | ||
} | ||
|
||
const firstCellStatus = await page.locator('tr:nth-child(2) > td > .z-10 > .absolute > span.sr-only') | ||
.first() | ||
.innerText(); | ||
|
||
expect(firstCellStatus).toMatch(statusPatterns) | ||
}); |