Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
102 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Uppy } from '@uppy/core' | ||
import Dashboard from '@uppy/dashboard' | ||
import AwsS3 from '@uppy/aws-s3-multipart' | ||
|
||
import '@uppy/core/dist/style.css' | ||
import '@uppy/dashboard/dist/style.css' | ||
|
||
const uppy = new Uppy() | ||
.use(Dashboard, { target: '#app', inline: true }) | ||
.use(AwsS3, { | ||
limit: 2, | ||
companionUrl: process.env.VITE_COMPANION_URL, | ||
}) | ||
|
||
// Keep this here to access uppy in tests | ||
window.uppy = uppy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>dashboard-aws-multipart</title> | ||
<script defer type="module" src="app.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Uppy } from '@uppy/core' | ||
import Dashboard from '@uppy/dashboard' | ||
import AwsS3 from '@uppy/aws-s3' | ||
|
||
import '@uppy/core/dist/style.css' | ||
import '@uppy/dashboard/dist/style.css' | ||
|
||
const uppy = new Uppy() | ||
.use(Dashboard, { target: '#app', inline: true }) | ||
.use(AwsS3, { | ||
limit: 2, | ||
companionUrl: process.env.VITE_COMPANION_URL, | ||
}) | ||
|
||
// Keep this here to access uppy in tests | ||
window.uppy = uppy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>dashboard-aws</title> | ||
<script defer type="module" src="app.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe('dashboard-aws', () => { | ||
beforeEach(() => { | ||
cy.visit('/dashboard-aws') | ||
cy.get('.uppy-Dashboard-input').as('file-input') | ||
}) | ||
|
||
it('should upload cat image successfully', () => { | ||
cy.get('@file-input').attachFile('images/cat.jpg') | ||
cy.get('.uppy-StatusBar-actionBtn--upload').click() | ||
|
||
cy.get('.uppy-StatusBar-statusPrimary').should('contain', 'Complete') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe('dashboard-aws', () => { | ||
beforeEach(() => { | ||
cy.visit('/dashboard-aws') | ||
cy.get('.uppy-Dashboard-input').as('file-input') | ||
}) | ||
|
||
it('should upload cat image successfully', () => { | ||
cy.get('@file-input').attachFile('images/cat.jpg') | ||
cy.get('.uppy-StatusBar-actionBtn--upload').click() | ||
|
||
cy.get('.uppy-StatusBar-statusPrimary').should('contain', 'Complete') | ||
}) | ||
}) |