-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2984 from uktrade/feat/your-files-ordering
Feat/your files ordering
- Loading branch information
Showing
7 changed files
with
5,843 additions
and
1,641 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
describe("Your files list view", () => { | ||
beforeEach(() => { | ||
cy.intercept("GET", "http://data-workspace-localstack:4566/notebooks.dataworkspace.local*", {fixture: "your-files/buckets-response.xml"}) | ||
cy.intercept("GET", "/api/v1/aws_credentials", {fixture: "your-files/credentials-response.xml"}) | ||
cy.visit("/files/"); | ||
}); | ||
|
||
it("should order the files descending by default", () => { | ||
cy.get("tr").as("file_rows"); | ||
cy.get("@file_rows") | ||
.eq(3) | ||
.should("exist") | ||
.find("a") | ||
.should("have.text", "second_test_file.rtf"); | ||
|
||
cy.get("@file_rows") | ||
.eq(4) | ||
.should("exist") | ||
.find("a") | ||
.should("have.text", "third_test_file.rtf"); | ||
|
||
cy.get("@file_rows") | ||
.eq(5) | ||
.should("exist") | ||
.find("a") | ||
.should("have.text", "test_file.rtf"); | ||
}); | ||
}); | ||
|
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | ||
<Name>notebooks.analysisworkspace.dev.uktrade.io</Name> | ||
<Prefix>user/</Prefix> | ||
<KeyCount>4</KeyCount> | ||
<MaxKeys>1000</MaxKeys> | ||
<Delimiter>/</Delimiter> | ||
<IsTruncated>false</IsTruncated> | ||
<Contents> | ||
<Key>/test_file.rtf</Key> | ||
<LastModified>2012-01-30T10:03:44.000Z</LastModified> | ||
<ETag></ETag> | ||
<Size>220</Size> | ||
<StorageClass>STANDARD</StorageClass> | ||
</Contents> | ||
<Contents> | ||
<Key>/second_test_file.rtf</Key> | ||
<LastModified>2024-01-30T14:31:21.000Z</LastModified> | ||
<ETag></ETag> | ||
<Size>220</Size> | ||
<StorageClass>STANDARD</StorageClass> | ||
</Contents> | ||
<Contents> | ||
<Key>/third_test_file.rtf</Key> | ||
<LastModified>2018-01-30T12:20:10.000Z</LastModified> | ||
<ETag></ETag> | ||
<Size>220</Size> | ||
<StorageClass>STANDARD</StorageClass> | ||
</Contents> | ||
<CommonPrefixes> | ||
<Prefix>/testfolder/</Prefix> | ||
</CommonPrefixes> | ||
</ListBucketResult> |
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,6 @@ | ||
{ | ||
"AccessKeyId": "Key", | ||
"SecretAccessKey": "Secret", | ||
"SessionToken": "Session", | ||
"Expiration": "2024-01-30T16:24:15Z" | ||
} |
2 changes: 2 additions & 0 deletions
2
dataworkspace/dataworkspace/static/js/bundles/your-files.c14d6787674946571ec3.js
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.