Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[N/A] fixes e2e test #1197

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/cypress/e2e/analysis/filters-table.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ describe('Analysis filters', () => {

$tableRows.first().find('button').contains('View detail').click();

$tableHeader.contains(waterQuality[0].attributes.name);
$tableHeader.contains(waterQuality[1].attributes.name);

cy.url().should(
'include',
`indicators=${waterQuality.map(({ id }) => id).join(',')}&detail=${waterQuality[0].id}`,
`indicators=${waterQuality.map(({ id }) => id).join(',')}&detail=${waterQuality[1].id}`,
);
});
});
Expand Down
70 changes: 35 additions & 35 deletions client/cypress/fixtures/indicators/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,41 @@
"nameCode": "DF_SLUC"
}
},
{
"type": "indicators",
"id": "d5f945c9-8636-45a2-a7c9-67a1dc8e687a",
"attributes": {
"id": "d5f945c9-8636-45a2-a7c9-67a1dc8e687a",
"name": "Freshwater nutrient load assimilation volume",
"description": "The freshwater nutrient load assimilation volume indicator estimates the annual average water volume required to assimilate the nutrient load added by the raw material sourced.",
"category": "Water quality",
"status": "active",
"metadata": {
"name": "Freshwater nutrient load assimilation volume",
"units": "Mm3/yr",
"source": [
"Mekonnen 2011",
"Mekonnen 2012"
],
"license": "CC BY 4.0",
"citation": [
"Mekonnen, M.M. & Hoekstra, A.Y. (2011) The green, blue and grey water footprint of crops and derived crop products, Hydrology and Earth System Sciences, 15(5): 1577-1600.",
"Mekonnen, M.M. & Hoekstra, A.Y. (2012) A global assessment of the water footprint of farm animal products, Ecosystems, 15(3): 401–415."
],
"name_code": "NL",
"resolution": "",
"short_name": "Nutrient load",
"description": "The freshwater nutrient load assimilation volume indicator estimates the annual average water volume required to assimilate the nutrient load added by the raw material sourced.",
"indicator_type": "farm-level",
"interpretation": "The nutrient load indicator describes the average volume of freshwater required to absorb the nutrient load created by production of the raw material. It is intended to align with the Science Based Targets Network (SBTN) water quality target indicator (Science Based Targets Network 2023b).",
"date_of_content": "1996-2005",
"geographic_coverage": "Global coverage.",
"frequency_of_updates": "",
"impact_type_category": "Water quality"
},
"nameCode": "NL"
}
},
{
"type": "indicators",
"id": "a39394be-ad57-41bc-9c2c-be0949ec6193",
Expand Down Expand Up @@ -155,41 +190,6 @@
"nameCode": "UWU"
}
},
{
"type": "indicators",
"id": "d5f945c9-8636-45a2-a7c9-67a1dc8e687a",
"attributes": {
"id": "d5f945c9-8636-45a2-a7c9-67a1dc8e687a",
"name": "Freshwater nutrient load assimilation volume",
"description": "The freshwater nutrient load assimilation volume indicator estimates the annual average water volume required to assimilate the nutrient load added by the raw material sourced.",
"category": "Water quality",
"status": "active",
"metadata": {
"name": "Freshwater nutrient load assimilation volume",
"units": "Mm3/yr",
"source": [
"Mekonnen 2011",
"Mekonnen 2012"
],
"license": "CC BY 4.0",
"citation": [
"Mekonnen, M.M. & Hoekstra, A.Y. (2011) The green, blue and grey water footprint of crops and derived crop products, Hydrology and Earth System Sciences, 15(5): 1577-1600.",
"Mekonnen, M.M. & Hoekstra, A.Y. (2012) A global assessment of the water footprint of farm animal products, Ecosystems, 15(3): 401–415."
],
"name_code": "NL",
"resolution": "",
"short_name": "Nutrient load",
"description": "The freshwater nutrient load assimilation volume indicator estimates the annual average water volume required to assimilate the nutrient load added by the raw material sourced.",
"indicator_type": "farm-level",
"interpretation": "The nutrient load indicator describes the average volume of freshwater required to absorb the nutrient load created by production of the raw material. It is intended to align with the Science Based Targets Network (SBTN) water quality target indicator (Science Based Targets Network 2023b).",
"date_of_content": "1996-2005",
"geographic_coverage": "Global coverage.",
"frequency_of_updates": "",
"impact_type_category": "Water quality"
},
"nameCode": "NL"
}
},
{
"type": "indicators",
"id": "9c2124c7-5df0-40d5-962e-d35480d48cd3",
Expand Down
Loading