dashboard-xhr.spec.ts 535 B

1234567891011121314151617
  1. import { interceptCompanionUrlRequest, interceptCompanionUnsplashRequest, runRemoteUrlImageUploadTest, runRemoteUnsplashUploadTest } from './reusable-tests'
  2. describe('Dashboard with XHR', () => {
  3. beforeEach(() => {
  4. cy.visit('/dashboard-xhr')
  5. interceptCompanionUrlRequest()
  6. interceptCompanionUnsplashRequest()
  7. })
  8. it('should upload remote image with URL plugin', () => {
  9. runRemoteUrlImageUploadTest()
  10. })
  11. it('should upload remote image with Unsplash plugin', () => {
  12. runRemoteUnsplashUploadTest()
  13. })
  14. })