Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/wri/wri-odp into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
luccasmmg committed Oct 29, 2024
2 parents c5b52cf + b6fe90d commit 8a2196e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
6 changes: 3 additions & 3 deletions deployment/frontend/src/components/datasets/sections/API.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const QueryInstructions = () => {
: publicCkanUrl

const ckanBaseUrl = `${publicCkanUrl}/api/3/action`
const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.id}`
const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.name}`

const rwBaseUrl = `https://api.resourcewatch.org/v1`
const rwDatasetGetUrl = `${rwBaseUrl}/dataset/${dataset.rw_id}`
Expand Down Expand Up @@ -165,7 +165,7 @@ const UseCases = ({ usecases }: { usecases: string }) => {
: publicCkanUrl

const ckanBaseUrl = `${publicCkanUrl}/api/3/action`
const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.id}`
const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.name}`

useEffect(() => {
if (!highlighted && divRef.current) {
Expand Down Expand Up @@ -210,7 +210,7 @@ const SnippetInstructions = ({
: publicCkanUrl
const ckanBaseUrl = `${publicCkanUrl}/api/3/action`

const ckanPackageShowUrl = `${ckanBaseUrl}/package_show?id=${dataset.id}`
const ckanPackageShowUrl = `${ckanBaseUrl}/package_show?id=${dataset.name}`
const ckanPackageShowSnippet = getSnippetFn(ckanPackageShowUrl)

const rwBaseUrl = `https://api.resourcewatch.org/v1`
Expand Down
25 changes: 19 additions & 6 deletions e2e-tests/cypress/e2e/web_search_indexing.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
describe('Meta Robots Tag Test', () => {
it('should contain a "noindex, nofollow" robots meta tag on the homepage', () => {
cy.visit('http://ckan-dev:5000/private-admin/');
cy.get('head meta[name="robots"]').should('have.attr', 'content', 'noindex,nofollow');
});
});
describe(
"Meta Robots Tag Test",
{
retries: {
runMode: 5,
openMode: 0,
},
},
() => {
it('should contain a "noindex, nofollow" robots meta tag on the homepage', () => {
cy.visit("http://ckan-dev:5000/private-admin/");
cy.get('head meta[name="robots"]').should(
"have.attr",
"content",
"noindex,nofollow",
);
});
},
);

0 comments on commit 8a2196e

Please sign in to comment.