Skip to content

Commit

Permalink
add an action to My Data table for creating/viewing analysis plans
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Aug 13, 2023
1 parent b1fc36f commit e2df182
Show file tree
Hide file tree
Showing 8 changed files with 1,494 additions and 8 deletions.
3 changes: 2 additions & 1 deletion client/cypress/e2e/my-analysis-plans.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
const continueTestId = 'continueWorkflow0'
cy.get('[data-test="'+continueTestId+'"]').click({force: true})
cy.url().should('contains','analyst-wizard')

cy.visit('my-data')
cy.pause()

})
})
Expand Down
35 changes: 34 additions & 1 deletion client/cypress/e2e/my-data.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,42 @@


})
it('displays Table correctly', () => {
cy.on('uncaught:exception', (e, runnable) => {
console.log('error', e)
console.log('runnable', runnable)

return false
})
const username = 'kermit'
const email = 'kermit@thefrog.com'
const password = 'kermit123!'

cy.createAccount(username, email, password)
cy.fixture('MyDataDatasetList.json').then(datasetList => {
// set Expiration Date and Time Remaining

cy.intercept('GET', '/api/dataset-info/', {
body: {
"count": 2,
"next": null,
"previous": null,
"results": datasetList
}
})

cy.visit('/my-data')

cy.get('[data-test="my-data-table"]').should('be.visible')
cy.pause()

})



})

it('successfully loads', () => {
it('successfully uploads a file ', () => {
cy.on('uncaught:exception', (e, runnable) => {
console.log('error', e)
console.log('runnable', runnable)
Expand Down
Loading

0 comments on commit e2df182

Please sign in to comment.