mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-30 23:01:17 -07:00
updates filename and comments (#378)
This commit is contained in:
parent
a1a3a013a8
commit
e5908cf7d7
2 changed files with 13 additions and 4 deletions
|
@ -2,9 +2,10 @@
|
|||
|
||||
describe('Census Block Group download', () => {
|
||||
it('validate file download', () => {
|
||||
const filename = `usa.zip`;
|
||||
cy.visit('localhost:8000/en/cejst');
|
||||
cy.get('#download-link').invoke('attr', 'target', '_blank');
|
||||
cy.intercept('https://justice40-data.s3.amazonaws.com/Score/usa.zip',
|
||||
cy.intercept(`https://justice40-data.s3.amazonaws.com/Score/${filename}`,
|
||||
{
|
||||
body: 'success',
|
||||
headers: {
|
||||
|
@ -15,6 +16,6 @@ describe('Census Block Group download', () => {
|
|||
).as('downloadRequest');
|
||||
cy.get('button[class*="downloadPacket"]').click();
|
||||
cy.wait('@downloadRequest');
|
||||
cy.readFile(`cypress/downloads/usa.csv`).should('exist');
|
||||
cy.readFile(`cypress/downloads/${filename}`).should('exist');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue