Skip to content

Commit

Permalink
Merge pull request #142 from anzusystems/anton-cypress
Browse files Browse the repository at this point in the history
Anton cypress
  • Loading branch information
stutlerxgod authored Oct 2, 2023
2 parents bf037a7 + 7357b2b commit fa06f22
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 26 deletions.
11 changes: 0 additions & 11 deletions cypress/e2e/settings/job.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe(`Test job function, Env: ${CY.cfg}`, { tags: '@job', env: { visitBaseUr
cy.contains('.v-list-item', JOB_SYNC)
cy.contains('.v-list-item', JOB_DELETE).click()
cy.getCy('targetUser').type(CY.credentials.admin.id)
cy.getCy('anonymizeUser').click()
cy.get('#switch-92').click()
cy.get('.v-card-actions > .bg-primary').click()
cy.alertMessage(ALERT_CREATE)
Expand All @@ -23,15 +22,5 @@ describe(`Test job function, Env: ${CY.cfg}`, { tags: '@job', env: { visitBaseUr
cy.getCyVisibleClick('button-close')
cy.cardLoad()
cy.get('.v-table').should('be.visible')

// cy.contains('.v-list-item', 'adminDam').click()
// cy.getCyVisibleClick('filter-submit')
// cy.cardLoad()
// cy.get('.v-tabs').should('be.visible')
// cy.get('.v-table').should('be.visible')
// cy.getCyVisibleClick('filter-reset')
// cy.cardLoad()
// cy.get('.v-tabs').should('not.exist')
// cy.get('.v-table').should('not.exist')
})
})
26 changes: 11 additions & 15 deletions cypress/e2e/settings/podcast.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ describe(`Test Podcast function, Env: ${CY.cfg}`, { tags: '@podcast', env: { vis
cy.getCy('podcast-description').clear().type(`${PODCAST_TITLE}-edit-description`)
//eslint-disable-next-line cypress/unsafe-to-chain-command
cy.getCy('podcast-rss-url').find('input').clear().type(`https://${PODCAST_TITLE}-edit.com`)
// cy.getCy('select-image-preview').within(() => {
// cy.get('button').click()
// cy.get('.asset-list-tiles').first().click()
// cy.contains('button', 'Zvoliť').click()
// })
// cy.getCy('select-image-alt').within(() => {
// cy.get('button').click()
// cy.get('.asset-list-tiles__item).eq(1).click()
// cy.contains('button', 'Zvoliť').click()
// })
cy.get('[data-cy=select-image-preview]').find('button').click()
cy.get('.asset-list-tiles > :nth-child(1)').click()
cy.contains('button', 'Zvoliť').click()
cy.get('[data-cy=select-image-alt]').find('button').click()
cy.get('.asset-list-tiles > :nth-child(1)').click()
cy.contains('button', 'Zvoliť').click()
cy.getCyVisibleClick('button-save')
cy.alertMessage(ALERT_UPDATE)
cy.getCyVisibleClick('button-close')
Expand Down Expand Up @@ -110,11 +106,11 @@ describe(`Test Podcast function, Env: ${CY.cfg}`, { tags: '@podcast', env: { vis
cy.getCy('episode-ext-id').type(`${Cypress._.random(1, 1000)}`)
cy.get('.mdi-calendar').click()
cy.get('[data-index="0"]').click()
// cy.getCy('select-image-preview').within(() => {
// cy.get('button').click()
// cy.get('.asset-list-tiles').first().click()
// cy.contains('button', 'Zvoliť').click()
// })
cy.get('body').type('{ESC}')
cy.get(':nth-child(1) > :nth-child(2) > .v-btn').click()
cy.get('.asset-list-tiles > :nth-child(2)').click()
cy.contains('button', 'Zvoliť').click()

cy.getCyVisibleClick('button-save')
cy.alertMessage(ALERT_UPDATE)
cy.getCyVisibleClick('button-close')
Expand Down
Binary file removed cypress/fixtures/audio/sample.m4a
Binary file not shown.
Binary file removed cypress/fixtures/audio/sample.mp3
Binary file not shown.
Binary file removed cypress/fixtures/audio/sample.wav
Binary file not shown.
Binary file removed cypress/fixtures/image/sample.gif
Binary file not shown.
Binary file removed cypress/fixtures/image/sample.jpeg
Binary file not shown.
Binary file removed cypress/fixtures/image/sample.png
Binary file not shown.
Binary file removed cypress/fixtures/image/sample.webp
Binary file not shown.
Binary file removed cypress/fixtures/video/sample.3gp
Binary file not shown.
Binary file removed cypress/fixtures/video/sample.avi
Binary file not shown.
Binary file removed cypress/fixtures/video/sample.mov
Binary file not shown.
Binary file removed cypress/fixtures/video/sample.mp4
Binary file not shown.

0 comments on commit fa06f22

Please sign in to comment.