Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ describe(
table.AssertURLColumnNavigation(
0,
0,
"https://randomuser.me/api/portraits/med/women/39.jpg",
"http://host.docker.internal:4200/453-200x300.jpg",
"v2",
);
table.AssertURLColumnNavigation(
3,
0,
"https://randomuser.me/api/portraits/med/men/52.jpg",
"http://host.docker.internal:4200/photo-1503469432756-4aae2e18d881.jpeg",
"v2",
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const TABLE_DATA_2 = `[
"name": "Barty Crouch",
"status": "APPROVED",
"gender": "",
"avatar": "https://robohash.org/sednecessitatibuset.png?size=100x100&set=set1",
"avatar": "http://host.docker.internal:4200/clouddefaultImage.png",
"email": "barty.crouch@gmail.com",
"address": "St Petersberg #911 4th main",
"createdAt": "2020-03-16T18:00:05.000Z",
Expand All @@ -73,7 +73,7 @@ const TABLE_DATA_2 = `[
"name": "Jenelle Kibbys",
"status": "APPROVED",
"gender": "Female",
"avatar": "https://robohash.org/quiaasperiorespariatur.bmp?size=100x100&set=set1",
"avatar": "http://host.docker.internal:4200/453-200x300.jpg",
"email": "jkibby1@hp.com",
"address": "85 Tennessee Plaza",
"createdAt": "2019-10-04T03:22:23.000Z",
Expand All @@ -84,7 +84,7 @@ const TABLE_DATA_2 = `[
"name": "Demetre",
"status": "APPROVED",
"gender": "Male",
"avatar": "https://robohash.org/iustooptiocum.jpg?size=100x100&set=set1",
"avatar": "http://host.docker.internal:4200/clouddefaultImage.png",
"email": "aaaa@bbb.com",
"address": "262 Saint Paul Park",
"createdAt": "2020-05-01T17:30:50.000Z",
Expand All @@ -95,7 +95,7 @@ const TABLE_DATA_2 = `[
"name": "Tobin Shellibeer",
"status": "APPROVED",
"gender": "Male",
"avatar": "https://robohash.org/odioeumdolores.png?size=100x100&set=set1",
"avatar": "http://host.docker.internal:4200/453-200x300.jpg",
"email": "tshellibeer9@ihg.com",
"address": "4 Ridgeway Lane",
"createdAt": "2019-11-27T06:09:41.000Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ describe(
"Ensure XSS vulnerability are handled",
{ tags: ["@tag.Datasource"] },
() => {
const test_rest_api_url1 = "https://jsonplaceholder.typicode.com/users";
const test_rest_api_url1 =
"http://host.docker.internal:5001/v1/mock-api?records=20";

it("1. Ensures xss scripts are not executed when an API is run.", () => {
apiPage.CreateApi("FirstAPI");
Expand Down
2 changes: 1 addition & 1 deletion app/client/cypress/fixtures/tableV2WithUrlColumnDsl.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
"rightColumn": 57,
"textSize": "0.875rem",
"widgetId": "8qeuty6826",
"tableData": "[\n {\n \"id\": 1,\n \"gender\": \"female\",\n \"latitude\": \"-45.7997\",\n \"longitude\": \"134.7575\",\n \"dob\": \"1949-03-04T20:39:54.475Z\",\n \"phone\": \"02-4497-0877\",\n \"email\": \"hilda.fisher@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/women/39.jpg\",\n \"country\": \"Australia\",\n \"name\": \"fish\"\n },\n {\n \"id\": 2,\n \"gender\": \"male\",\n \"latitude\": \"42.9756\",\n \"longitude\": \"105.8589\",\n \"dob\": \"1987-04-23T20:44:58.921Z\",\n \"phone\": \"(456)-174-6938\",\n \"email\": \"alies@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/women/6.jpg\",\n \"country\": \"Netherlands\",\n \"name\": \"Aliesds\"\n },\n {\n \"id\": 3,\n \"gender\": \"female\",\n \"latitude\": \"-14.0884\",\n \"longitude\": \"27.0428\",\n \"dob\": \"1980-05-14T12:00:46.973Z\",\n \"phone\": \"29700140\",\n \"email\": \"sofia@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/women/88.jpg\",\n \"country\": \"Norway\",\n \"name\": \"Sofia\"\n },\n {\n \"id\": 4,\n \"gender\": \"male\",\n \"latitude\": \"-88.0169\",\n \"longitude\": \"-118.7708\",\n \"dob\": \"1984-02-25T07:31:12.723Z\",\n \"phone\": \"594-620-3202\",\n \"email\": \"jack.frost@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/men/52.jpg\",\n \"country\": \"Canada\",\n \"name\": \"Jack\"\n },\n {\n \"id\": 5,\n \"gender\": \"female\",\n \"latitude\": \"73.6320\",\n \"longitude\": \"-167.3976\",\n \"dob\": \"1995-11-22T02:25:20.419Z\",\n \"phone\": \"016973 12222\",\n \"email\": \"caroline.daniels@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/women/91.jpg\",\n \"country\": \"United Kingdom\",\n \"name\": \"Caroline Daniels\"\n },\n {\n \"id\": 6,\n \"gender\": \"male\",\n \"latitude\": \"86.1891\",\n \"longitude\": \"-56.8442\",\n \"dob\": \"1959-02-20T02:42:20.579Z\",\n \"phone\": \"61521059\",\n \"email\": \"mohamad.persson@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/men/58.jpg\",\n \"country\": \"Norway\",\n \"name\": \"Mohamad Persson\"\n },\n {\n \"id\": 7,\n \"gender\": \"male\",\n \"latitude\": \"-83.6654\",\n \"longitude\": \"87.6481\",\n \"dob\": \"1952-02-22T18:47:29.476Z\",\n \"phone\": \"(212)-051-1147\",\n \"email\": \"julia.armstrong@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/women/30.jpg\",\n \"country\": \"United States\",\n \"name\": \"Julia Armstrong\"\n },\n {\n \"id\": 8,\n \"gender\": \"female\",\n \"latitude\": \"38.7394\",\n \"longitude\": \"-31.7919\",\n \"dob\": \"1955-10-07T11:31:49.823Z\",\n \"phone\": \"(817)-164-4040\",\n \"email\": \"shiva.duijf@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/women/88.jpg\",\n \"country\": \"Netherlands\",\n \"name\": \"Shiva Duijf\"\n },\n {\n \"id\": 9,\n \"gender\": \"male\",\n \"latitude\": \"4.5623\",\n \"longitude\": \"9.0901\",\n \"dob\": \"1952-02-05T07:30:11.466Z\",\n \"phone\": \"33668847\",\n \"email\": \"john.haugsvaer@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/men/30.jpg\",\n \"country\": \"Norway\",\n \"name\": \"John Haugsvær\"\n },\n {\n \"id\": 10,\n \"gender\": \"male\",\n \"latitude\": \"-49.4156\",\n \"longitude\": \"-132.3755\",\n \"dob\": \"1977-03-27T02:12:01.151Z\",\n \"phone\": \"212-355-8035\",\n \"email\": \"david.mackay@example.com\",\n \"image\": \"https://randomuser.me/api/portraits/med/men/73.jpg\",\n \"country\": \"Canada\",\n \"name\": \"David Mackay\"\n }\n]",
"tableData": "[\n {\n \"id\": 1,\n \"gender\": \"female\",\n \"latitude\": \"-45.7997\",\n \"longitude\": \"134.7575\",\n \"dob\": \"1949-03-04T20:39:54.475Z\",\n \"phone\": \"02-4497-0877\",\n \"email\": \"hilda.fisher@example.com\",\n \"image\": \"http://host.docker.internal:4200/453-200x300.jpg\",\n \"country\": \"Australia\",\n \"name\": \"fish\"\n },\n {\n \"id\": 2,\n \"gender\": \"male\",\n \"latitude\": \"42.9756\",\n \"longitude\": \"105.8589\",\n \"dob\": \"1987-04-23T20:44:58.921Z\",\n \"phone\": \"(456)-174-6938\",\n \"email\": \"alies@example.com\",\n \"image\": \"http://host.docker.internal:4200/photo-1503469432756-4aae2e18d881.jpeg\",\n \"country\": \"Netherlands\",\n \"name\": \"Aliesds\"\n },\n {\n \"id\": 3,\n \"gender\": \"female\",\n \"latitude\": \"-14.0884\",\n \"longitude\": \"27.0428\",\n \"dob\": \"1980-05-14T12:00:46.973Z\",\n \"phone\": \"29700140\",\n \"email\": \"sofia@example.com\",\n \"image\": \"http://host.docker.internal:4200/photo-1503469432756-4aae2e18d881.jpeg\",\n \"country\": \"Norway\",\n \"name\": \"Sofia\"\n },\n {\n \"id\": 4,\n \"gender\": \"male\",\n \"latitude\": \"-88.0169\",\n \"longitude\": \"-118.7708\",\n \"dob\": \"1984-02-25T07:31:12.723Z\",\n \"phone\": \"594-620-3202\",\n \"email\": \"jack.frost@example.com\",\n \"image\": \"http://host.docker.internal:4200/photo-1503469432756-4aae2e18d881.jpeg\",\n \"country\": \"Canada\",\n \"name\": \"Jack\"\n },\n {\n \"id\": 5,\n \"gender\": \"female\",\n \"latitude\": \"73.6320\",\n \"longitude\": \"-167.3976\",\n \"dob\": \"1995-11-22T02:25:20.419Z\",\n \"phone\": \"016973 12222\",\n \"email\": \"caroline.daniels@example.com\",\n \"image\": \"http://host.docker.internal:4200/photo-1503469432756-4aae2e18d881.jpeg\",\n \"country\": \"United Kingdom\",\n \"name\": \"Caroline Daniels\"\n },\n {\n \"id\": 6,\n \"gender\": \"male\",\n \"latitude\": \"86.1891\",\n \"longitude\": \"-56.8442\",\n \"dob\": \"1959-02-20T02:42:20.579Z\",\n \"phone\": \"61521059\",\n \"email\": \"mohamad.persson@example.com\",\n \"image\": \"http://host.docker.internal:4200/photo-1503469432756-4aae2e18d881.jpeg\",\n \"country\": \"Norway\",\n \"name\": \"Mohamad Persson\"\n },\n {\n \"id\": 7,\n \"gender\": \"male\",\n \"latitude\": \"-83.6654\",\n \"longitude\": \"87.6481\",\n \"dob\": \"1952-02-22T18:47:29.476Z\",\n \"phone\": \"(212)-051-1147\",\n \"email\": \"julia.armstrong@example.com\",\n \"image\": \"http://host.docker.internal:4200/453-200x300.jpg\",\n \"country\": \"United States\",\n \"name\": \"Julia Armstrong\"\n },\n {\n \"id\": 8,\n \"gender\": \"female\",\n \"latitude\": \"38.7394\",\n \"longitude\": \"-31.7919\",\n \"dob\": \"1955-10-07T11:31:49.823Z\",\n \"phone\": \"(817)-164-4040\",\n \"email\": \"shiva.duijf@example.com\",\n \"image\": \"http://host.docker.internal:4200/453-200x300.jpg\",\n \"country\": \"Netherlands\",\n \"name\": \"Shiva Duijf\"\n },\n {\n \"id\": 9,\n \"gender\": \"male\",\n \"latitude\": \"4.5623\",\n \"longitude\": \"9.0901\",\n \"dob\": \"1952-02-05T07:30:11.466Z\",\n \"phone\": \"33668847\",\n \"email\": \"john.haugsvaer@example.com\",\n \"image\": \"http://host.docker.internal:4200/453-200x300.jpg\",\n \"country\": \"Norway\",\n \"name\": \"John Haugsvær\"\n },\n {\n \"id\": 10,\n \"gender\": \"male\",\n \"latitude\": \"-49.4156\",\n \"longitude\": \"-132.3755\",\n \"dob\": \"1977-03-27T02:12:01.151Z\",\n \"phone\": \"212-355-8035\",\n \"email\": \"david.mackay@example.com\",\n \"image\": \"http://host.docker.internal:4200/453-200x300.jpg\",\n \"country\": \"Canada\",\n \"name\": \"David Mackay\"\n }\n]",
"label": "Data",
"searchKey": "",
"parentId": "0",
Expand Down