forked from chpladmin/chpl-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ver-13.8.0' into production
- Loading branch information
Showing
127 changed files
with
2,923 additions
and
1,619 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
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
42 changes: 15 additions & 27 deletions
42
e2e/components/upload/upload-api-documentation/upload-api-documentation.po.js
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
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 |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import LoginComponent from '../../login/login.sync.po'; | ||
import Hooks from '../../../utilities/hooks'; | ||
import ToastComponent from '../../toast/toast.po'; | ||
|
||
import UploadPiComponent from './upload-pi.po'; | ||
|
||
let hooks; | ||
let loginComponent; | ||
let toast; | ||
let upload; | ||
|
||
beforeEach(async () => { | ||
upload = new UploadPiComponent(); | ||
loginComponent = new LoginComponent(); | ||
toast = new ToastComponent(); | ||
hooks = new Hooks(); | ||
await hooks.open('#/administration/upload'); | ||
}); | ||
|
@@ -23,20 +20,18 @@ describe('As a ROLE_ONC user', () => { | |
}); | ||
|
||
afterEach(() => { | ||
hooks.waitForSpinnerToDisappear(); | ||
toast.clearAllToast(); | ||
loginComponent.logOut(); | ||
browser.reloadSession(); | ||
}); | ||
|
||
it('should be able to upload valid format of Promoting Interoperability file', () => { | ||
upload.upload('../../../resources/pi/PI_upload.csv', '01/01/2021'); | ||
browser.waitUntil(() => toast.toastTitle.isDisplayed()); | ||
expect(toast.toastTitle.getText()).toBe('Success'); | ||
hooks.waitForSpinnerToDisappear(); | ||
expect(upload.uploadResults).toHaveTextContaining('The file will be processed and an email will be sent to [email protected] when processing is complete'); | ||
}); | ||
|
||
it('should not be able to upload invalid format of Promoting Interoperability file', () => { | ||
upload.upload('../../../resources/apiDoc/APIDoc_File.xlsx', '01/01/2021'); | ||
browser.waitUntil(() => toast.toastTitle.isDisplayed()); | ||
expect(toast.toastTitle.getText()).toBe('Error'); | ||
hooks.waitForSpinnerToDisappear(); | ||
expect(upload.uploadResults).toHaveTextContaining('was not uploaded successfully. File must be a CSV document.'); | ||
}); | ||
}); |
Oops, something went wrong.