Skip to content

Commit

Permalink
fix(test): Fix archive e2e test due to default sort by Name (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze authored Feb 3, 2020
1 parent 664b73f commit 041dd89
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/integration/archive/ArchiveViewer.e2e.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <reference types="Cypress" />
describe.skip('Archive Viewer', () => {
describe('Archive Viewer', () => {
const token = Cypress.env('ACCESS_TOKEN');
const fileId = Cypress.env('FILE_ID_ARCHIVE');

Expand All @@ -26,12 +26,16 @@ describe.skip('Archive Viewer', () => {
cy.getByTitle('Preview SDK Sample Archive').within(() => {
cy.get('button').click();
});
// default sort by name
cy.get('.ReactVirtualized__Table__row')
.first()
.contains('Audio.mp3');

// reverse
cy.getByTitle('Name').click();

cy.get('.ReactVirtualized__Table__row')
.first()
.contains('Audio.mp3');
.contains('Preview SDK Sample Excel.xlsx');
});

it('Should show matched item list based on search query', () => {
Expand Down

0 comments on commit 041dd89

Please sign in to comment.