Skip to content

Commit 2b996e8

Browse files
format tests
1 parent e9e253f commit 2b996e8

1 file changed

Lines changed: 37 additions & 37 deletions

File tree

tests/cypress/e2e/dataConnector.spec.ts

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe("Set up data connectors from a project page", () => {
5353
.parent() // Go one node above (to the parent div)
5454
.should(
5555
"contain.text",
56-
"If using KMS ID you must provide the ARN of Key"
56+
"If using KMS ID you must provide the ARN of Key",
5757
);
5858

5959
// Fill out the details
@@ -75,11 +75,11 @@ describe("Set up data connectors from a project page", () => {
7575
cy.wait("@postDataConnector");
7676
cy.getDataCy("data-connector-edit-body").should(
7777
"contain.text",
78-
"The data connector user1-uuid/test-2-v2-project/example-storage-without-credentials has been successfully added"
78+
"The data connector user1-uuid/test-2-v2-project/example-storage-without-credentials has been successfully added",
7979
);
8080
cy.getDataCy("data-connector-edit-body").should(
8181
"contain.text",
82-
"project was linked"
82+
"project was linked",
8383
);
8484
cy.getDataCy("data-connector-edit-close-button").click();
8585
cy.wait("@listProjectDataConnectors");
@@ -113,7 +113,7 @@ describe("Set up data connectors from a project page", () => {
113113
// add data connector
114114
cy.getDataCy("add-data-connector").should("be.visible").click();
115115
cy.getDataCy("data-connector-search-input").type(
116-
"user1-uuid/example-storage"
116+
"user1-uuid/example-storage",
117117
);
118118
cy.getDataCy("data-connector-link-button").click();
119119

@@ -172,7 +172,7 @@ describe("Set up data connectors from a project page", () => {
172172
// add data connector
173173
cy.getDataCy("add-data-connector").should("be.visible").click();
174174
cy.getDataCy("data-connector-search-input").type(
175-
"https://zenodo.org/records/123456"
175+
"https://zenodo.org/records/123456",
176176
);
177177
cy.getDataCy("data-connector-link-button").click();
178178
cy.wait("@postDataConnectorProjectLink");
@@ -206,7 +206,7 @@ describe("Set up data connectors from a project page", () => {
206206

207207
cy.wait("@getProjectV2Permissions");
208208
cy.contains("Are you sure you want to unlink the data connector").should(
209-
"be.visible"
209+
"be.visible",
210210
);
211211
cy.getDataCy("delete-data-connector-modal-button")
212212
.should("be.enabled")
@@ -276,11 +276,11 @@ describe("Set up data connectors from a project page", () => {
276276
cy.wait("@postDataConnector");
277277
cy.getDataCy("data-connector-edit-body").should(
278278
"contain.text",
279-
"The data connector user1-uuid/test-2-v2-project/example-storage-without-credentials has been successfully added"
279+
"The data connector user1-uuid/test-2-v2-project/example-storage-without-credentials has been successfully added",
280280
);
281281
cy.getDataCy("data-connector-edit-body").should(
282282
"contain.text",
283-
"project was linked"
283+
"project was linked",
284284
);
285285
cy.getDataCy("data-connector-edit-close-button").click();
286286
cy.wait("@listProjectDataConnectors");
@@ -332,7 +332,7 @@ describe("Set up data connectors from a project page", () => {
332332
cy.wait("@patchDataConnector");
333333
cy.getDataCy("data-connector-edit-body").should(
334334
"contain.text",
335-
"The data connector user1-uuid/example-storage has been successfully updated."
335+
"The data connector user1-uuid/example-storage has been successfully updated.",
336336
);
337337
});
338338
});
@@ -396,7 +396,7 @@ describe("Data connector page", () => {
396396
cy.wait("@postDataConnector");
397397
cy.getDataCy("data-connector-edit-body").should(
398398
"contain.text",
399-
`The data connector ${username}/${dataConnectorSlug} has been successfully added`
399+
`The data connector ${username}/${dataConnectorSlug} has been successfully added`,
400400
);
401401
cy.getDataCy("data-connector-edit-close-button").click();
402402

@@ -417,7 +417,7 @@ describe("Data connector page", () => {
417417
cy.url().should("include", `/d/${username}/${dataConnectorSlug}`);
418418
cy.getDataCy("data-connector-identifier").should(
419419
"contain.text",
420-
`${username}/${dataConnectorSlug}`
420+
`${username}/${dataConnectorSlug}`,
421421
);
422422
});
423423

@@ -522,11 +522,11 @@ describe("Set up data connectors with credentials in project pages", () => {
522522
cy.wait("@postDataConnector");
523523
cy.getDataCy("data-connector-edit-body").should(
524524
"contain.text",
525-
"The data connector user1-uuid/test-2-v2-project/example-storage-without-credentials has been successfully added"
525+
"The data connector user1-uuid/test-2-v2-project/example-storage-without-credentials has been successfully added",
526526
);
527527
cy.getDataCy("data-connector-edit-body").should(
528528
"contain.text",
529-
"project was linked"
529+
"project was linked",
530530
);
531531
cy.getDataCy("data-connector-edit-close-button").click();
532532
cy.wait("@listProjectDataConnectors");
@@ -535,11 +535,11 @@ describe("Set up data connectors with credentials in project pages", () => {
535535
cy.wait("@getDataConnectorSecrets");
536536
cy.getDataCy("data-connector-title").should(
537537
"contain.text",
538-
"example storage"
538+
"example storage",
539539
);
540540
cy.getDataCy("access_key_id-value").should(
541541
"contain.text",
542-
"Requires credentials"
542+
"Requires credentials",
543543
);
544544
});
545545

@@ -587,7 +587,7 @@ describe("Set up data connectors with credentials in project pages", () => {
587587
cy.getDataCy("test-data-connector-button").click();
588588
cy.wait("@testCloudStorage");
589589
cy.contains("The connection to the storage works correctly.").should(
590-
"be.visible"
590+
"be.visible",
591591
);
592592
cy.getDataCy("add-data-connector-continue-button")
593593
.contains("Continue")
@@ -601,15 +601,15 @@ describe("Set up data connectors with credentials in project pages", () => {
601601
cy.wait("@patchDataConnectorSecrets");
602602
cy.getDataCy("data-connector-edit-body").should(
603603
"contain.text",
604-
"The data connector user1-uuid/test-2-v2-project/example-storage-with-credentials has been successfully added"
604+
"The data connector user1-uuid/test-2-v2-project/example-storage-with-credentials has been successfully added",
605605
);
606606
cy.getDataCy("data-connector-edit-body").should(
607607
"contain.text",
608-
"credentials were saved"
608+
"credentials were saved",
609609
);
610610
cy.getDataCy("data-connector-edit-body").should(
611611
"contain.text",
612-
"project was linked"
612+
"project was linked",
613613
);
614614

615615
cy.getDataCy("data-connector-edit-close-button").click();
@@ -619,11 +619,11 @@ describe("Set up data connectors with credentials in project pages", () => {
619619
cy.wait("@getDataConnectorSecrets");
620620
cy.getDataCy("data-connector-title").should(
621621
"contain.text",
622-
"example storage"
622+
"example storage",
623623
);
624624
cy.getDataCy("access_key_id-value").should(
625625
"contain.text",
626-
"Credentials saved"
626+
"Credentials saved",
627627
);
628628
cy.getDataCy("data-connector-view-back-button").click();
629629

@@ -674,11 +674,11 @@ describe("Set up data connectors with credentials in group pages", () => {
674674
cy.getDataCy("data-connector-name").contains("private-storage-1").click();
675675
cy.getDataCy("data-connector-title").should(
676676
"contain.text",
677-
"private-storage-1"
677+
"private-storage-1",
678678
);
679679
cy.getDataCy("access_key_id-value").should(
680680
"contain.text",
681-
"Requires credentials"
681+
"Requires credentials",
682682
);
683683
cy.getDataCy("data-connector-view-back-button").click();
684684
});
@@ -720,7 +720,7 @@ describe("Set up data connectors with credentials in group pages", () => {
720720
cy.wait("@postDataConnector");
721721
cy.getDataCy("data-connector-edit-body").should(
722722
"contain.text",
723-
"The data connector test-2-group-v2/example-storage-without-credentials has been successfully added."
723+
"The data connector test-2-group-v2/example-storage-without-credentials has been successfully added.",
724724
);
725725
cy.getDataCy("data-connector-edit-close-button").click();
726726
cy.wait("@listDataConnectors");
@@ -764,7 +764,7 @@ describe("Set up data connectors with credentials in group pages", () => {
764764
cy.wait("@postDataConnector");
765765
cy.getDataCy("data-connector-edit-body").should(
766766
"contain.text",
767-
"The data connector test-2-group-v2/example-storage-without-credentials has been successfully added."
767+
"The data connector test-2-group-v2/example-storage-without-credentials has been successfully added.",
768768
);
769769
cy.getDataCy("data-connector-edit-close-button").click();
770770
cy.wait("@listDataConnectors");
@@ -851,11 +851,11 @@ describe("Set up data connectors with credentials in group pages", () => {
851851
cy.wait("@patchDataConnectorSecrets");
852852
cy.getDataCy("data-connector-edit-body").should(
853853
"contain.text",
854-
"The data connector test-2-group-v2/example-storage has been successfully added"
854+
"The data connector test-2-group-v2/example-storage has been successfully added",
855855
);
856856
cy.getDataCy("data-connector-edit-body").should(
857857
"contain.text",
858-
"credentials were saved"
858+
"credentials were saved",
859859
);
860860
cy.getDataCy("data-connector-edit-close-button").click();
861861
cy.wait("@listDataConnectors");
@@ -900,7 +900,7 @@ describe("Set up data connectors with credentials in group pages", () => {
900900

901901
cy.getDataCy("access_key_id-value").should(
902902
"contain.text",
903-
"Requires credentials"
903+
"Requires credentials",
904904
);
905905

906906
// set credentials
@@ -945,11 +945,11 @@ describe("Set up data connectors with credentials in group pages", () => {
945945
// Credentials should be stored
946946
cy.getDataCy("data-connector-title").should(
947947
"contain.text",
948-
"example storage"
948+
"example storage",
949949
);
950950
cy.getDataCy("access_key_id-value").should(
951951
"contain.text",
952-
"Credentials saved"
952+
"Credentials saved",
953953
);
954954

955955
// edit data connector, without touching the credentials
@@ -990,11 +990,11 @@ describe("Set up data connectors with credentials in group pages", () => {
990990
cy.wait("@getDataConnectorSecrets");
991991
cy.getDataCy("data-connector-title").should(
992992
"contain.text",
993-
"example storage"
993+
"example storage",
994994
);
995995
cy.getDataCy("access_key_id-value").should(
996996
"contain.text",
997-
"Credentials saved"
997+
"Credentials saved",
998998
);
999999

10001000
// clear credentials
@@ -1016,11 +1016,11 @@ describe("Set up data connectors with credentials in group pages", () => {
10161016
// Credentials should be changed
10171017
cy.getDataCy("data-connector-title").should(
10181018
"contain.text",
1019-
"example storage"
1019+
"example storage",
10201020
);
10211021
cy.getDataCy("access_key_id-value").should(
10221022
"contain.text",
1023-
"Requires credentials"
1023+
"Requires credentials",
10241024
);
10251025
});
10261026

@@ -1078,11 +1078,11 @@ describe("Set up data connectors with credentials in group pages", () => {
10781078
cy.wait("@patchDataConnectorSecrets");
10791079
cy.getDataCy("data-connector-edit-body").should(
10801080
"contain.text",
1081-
"The data connector test-2-group-v2/example-storage has been successfully added"
1081+
"The data connector test-2-group-v2/example-storage has been successfully added",
10821082
);
10831083
cy.getDataCy("data-connector-edit-body").should(
10841084
"contain.text",
1085-
"credentials were saved"
1085+
"credentials were saved",
10861086
);
10871087
cy.getDataCy("data-connector-edit-close-button").click();
10881088
cy.wait("@listDataConnectors");
@@ -1117,7 +1117,7 @@ describe("Set up data connectors with credentials in group pages", () => {
11171117
cy.wait("@postDataConnector");
11181118
cy.getDataCy("data-connector-edit-body").should(
11191119
"contain.text",
1120-
"The data connector test-2-group-v2/example-storage-without-credentials has been successfully added."
1120+
"The data connector test-2-group-v2/example-storage-without-credentials has been successfully added.",
11211121
);
11221122
cy.getDataCy("data-connector-edit-close-button").click();
11231123
cy.wait("@listDataConnectors");

0 commit comments

Comments
 (0)