Skip to content

Commit cd0e3df

Browse files
authored
Use NavLink instead of Link in header (#150)
* Use NavLink instead of Link in header * Use location.key to keep url from updating * Fix cypress tests to work with new 404 dkan code * Update to components latest
1 parent f6206d8 commit cd0e3df

7 files changed

Lines changed: 1343 additions & 1801 deletions

File tree

cypress/e2e/dataset-stubbed.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ context('Dataset stubbed', () => {
44
cy.stubMetadata();
55
cy.stubDatatable();
66
cy.stubDatastoreImportInfo();
7-
cy.visit('/dataset/1234-abcd')
7+
cy.visit('/dataset/fb3525f2-d32a-451e-8869-906ed41f7695')
88
})
99

1010
it('I see the title and description', () => {
11-
cy.get('h1').should('have.text', 'Asthma Prevalence')
11+
cy.get('h1').should('have.text', 'Stubbed Dataset')
1212
cy.get('.col-md-9').contains('This table contains the estimated percent of California adults (18 and older)')
1313
})
1414

cypress/fixtures/datasetMetadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@
105105
}
106106
],
107107
"temporal": "1995-01-01T05:00:00+00:00/2017-12-31T05:00:00+00:00",
108-
"title": "Asthma Prevalence"
108+
"title": "Stubbed Dataset"
109109
}

cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Cypress.Commands.add('stubDatastoreImportInfo', () => {
1111
});
1212

1313
Cypress.Commands.add('stubMetadata', () => {
14-
cy.intercept(/.*\/metastore\/schemas\/dataset\/items\/1234-abcd\?.*/, { fixture: 'datasetMetadata.json' })
14+
cy.intercept(/.*\/metastore\/schemas\/dataset\/items\/fb3525f2-d32a-451e-8869-906ed41f7695\?.*/, { fixture: 'datasetMetadata.json' })
1515
});
1616

1717
Cypress.Commands.add('stubDatatable', () => {

0 commit comments

Comments
 (0)