Skip to content

Commit

Permalink
EDSC-3850: Bumping semver version (#1654)
Browse files Browse the repository at this point in the history
* EDSC-3850 bumping semver version

* EDSC-3850 Fixing dependency versions

* EDSC-3850 Using audit instead

* EDSC-3850 Cypress test adjustments

---------

Co-authored-by: drewpesall <[email protected]>
  • Loading branch information
dpesall and drewpesall authored Jul 31, 2023
1 parent 2e79968 commit c8878b4
Show file tree
Hide file tree
Showing 3 changed files with 8,482 additions and 5,537 deletions.
51 changes: 30 additions & 21 deletions cypress/e2e/paths/search/granules/granules.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ describe('Path /search/granules', () => {
url: '**/search/granules/timeline'
},
(req) => {
expect(req.body).to.eq('end_date=2023-12-01T00:00:00.000Z&interval=day&start_date=2018-12-01T00:00:00.000Z&concept_id[]=C1214470488-ASF')

if (req.body) {
expect(req.body).to.eq('end_date=2023-12-01T00:00:00.000Z&interval=day&start_date=2018-12-01T00:00:00.000Z&concept_id[]=C1214470488-ASF')
}
req.reply({
body: noParamsTimelineBody,
headers: noParamsTimelineHeaders
Expand Down Expand Up @@ -1235,6 +1236,26 @@ describe('Path /search/granules', () => {
const cmrHits = 1059170
cy.login()

cy.intercept({
method: 'POST',
url: '**/timeline'
},
(req) => {
if (req.body) {
expect(JSON.parse(req.body).params).to.eql({
end_date: '2023-12-01T00:00:00.000Z',
interval: 'day',
start_date: '2018-12-01T00:00:00.000Z',
concept_id: ['C1214470488-ASF']
})
}

req.reply({
body: subscriptionTimelineBody,
headers: subscriptionTimelineHeaders
})
})

cy.intercept({
method: 'POST',
url: '**/collections'
Expand Down Expand Up @@ -1291,24 +1312,6 @@ describe('Path /search/granules', () => {
})
})

cy.intercept({
method: 'POST',
url: '**/timeline'
},
(req) => {
expect(JSON.parse(req.body).params).to.eql({
end_date: '2023-12-01T00:00:00.000Z',
interval: 'day',
start_date: '2018-12-01T00:00:00.000Z',
concept_id: ['C1214470488-ASF']
})

req.reply({
body: subscriptionTimelineBody,
headers: subscriptionTimelineHeaders
})
})

cy.intercept({
method: 'POST',
url: '**/graphql'
Expand All @@ -1317,7 +1320,13 @@ describe('Path /search/granules', () => {
if (JSON.parse(req.body).data.query === graphQlGetSubscriptionsQuery) {
req.alias = 'graphQlPageLoadSubscriptionsQuery'
req.reply({
body: subscriptionGraphQlBody,
body: {
data: {
subscriptions: {
items: []
}
}
},
headers: subscriptionGraphQlHeaders
})
}
Expand Down
Loading

0 comments on commit c8878b4

Please sign in to comment.