Skip to content

Commit

Permalink
Updated new cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-qa007 committed Sep 30, 2024
1 parent 23e4a3c commit f71d473
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ import EditorNavigation, {

const ppt =
"https://ssz.sgp1.digitaloceanspaces.com/3ZEO2582C29EA0KKK2/ppt-on-population-pptxafa26c44-208f-46a3-89cc-8a5c020b6863.pptx";
const pngImage =
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRb8umIiCU_K6ac-xS-ni4y6SP7XAd8C7Ms3Q&usqp=CAU";
const pngImage = "https://www.appsmith.com/favicon.png";
const jpgImage =
"https://community.appsmith.com/sites/default/files/styles/small_thumbnail/public/2024-03/aws-logo.jpg?itok=yG4bpfFs";
"https://community.appsmith.com/sites/default/files/styles/small_thumbnail/public/2024-03/aws-logo.jpg";
const pdf =
"https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf";

Expand Down Expand Up @@ -212,10 +211,7 @@ describe(
agHelper.AssertElementExist(
locators._widgetInDeployed("documentviewerwidget"),
);
agHelper.AssertContains(
"Current file type is not supported",
"not.exist",
);
agHelper.AssertContains("Current file type is not supported");
deployMode.NavigateBacktoEditor();
//Should not show an jpg image file"
EditorNavigation.SelectEntityByName("DocumentViewer1", EntityType.Widget);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ describe(
{ tags: ["@tag.Widget", "@tag.Modal"] },
function () {
const image = (src: string) => 'img[src="' + src + '"]';
const jpgImg = "https://jpeg.org/images/jpegsystems-home.jpg";
const gifImg =
"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/5eeea355389655.59822ff824b72.gif";
const jpgImg =
"https://community.appsmith.com/sites/default/files/styles/small_thumbnail/public/2024-03/aws-logo.jpg";
const gifImg = "https://docs.appsmith.com/img/multi-update-sql.gif";

it("1. Modal widget functionality", () => {
entityExplorer.DragDropWidgetNVerify(draggableWidgets.BUTTON);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,35 @@ describe(
_.deployMode.DeployApp();

//_.table.SelectTableRow(1)

_.table.ReadTableRowColumnData(0, 0).then(($cellData) => {
expect($cellData).to.eq("1376499.jpg");
expect($cellData).contains("cube-logo_S50__hLNq.jpeg");
});

_.table.ReadTableRowColumnData(1, 0).then(($cellData) => {
expect($cellData).to.eq("https://wallpaperaccess.com/full/1688623.jpg");
expect($cellData).to.eq(
"https://docs.appsmith.com/img/Appsmith-Login-Screen-Shows-SAML.jpg",
);
});

_.table.ReadTableRowColumnData(2, 0).then(($cellData) => {
expect($cellData).to.eq("2117775.jpg");
expect($cellData).contains("zapier-logo_odZ9wZQ3vY.jpeg");
});

_.table.ReadTableRowColumnData(3, 0).then(($cellData) => {
expect($cellData).to.eq("https://wallpaperaccess.com/full/812632.jpg");
expect($cellData).to.eq(
"https://docs.appsmith.com/img/replyto-logo_6yaZHFIeU.jpeg",
);
});

_.table.AssertURLColumnNavigation(
0,
0,
"https://wallpaperaccess.com/full/1376499.jpg",
"https://docs.appsmith.com/img/cube-logo_S50__hLNq.jpeg",
);
// _.table.AssertURLColumnNavigation(
// 3,
// 0,
// "https://wallpaperaccess.com/full/812632.jpg",
// "https://docs.appsmith.com/img/replyto-logo_6yaZHFIeU.jpeg",
// );

_.deployMode.NavigateBacktoEditor();
Expand All @@ -73,30 +76,34 @@ describe(
_.deployMode.DeployApp();

_.table.ReadTableRowColumnData(0, 0).then(($cellData) => {
expect($cellData).to.eq("1376499.jpg");
expect($cellData).contains("cube-logo_S50__hLNq.jpeg");
});

_.table.ReadTableRowColumnData(1, 0).then(($cellData) => {
expect($cellData).to.eq("https://wallpaperaccess.com/full/1688623.jpg");
expect($cellData).to.eq(
"https://docs.appsmith.com/img/Appsmith-Login-Screen-Shows-SAML.jpg",
);
});

_.table.ReadTableRowColumnData(2, 0).then(($cellData) => {
expect($cellData).to.eq("2117775.jpg");
expect($cellData).contains("zapier-logo_odZ9wZQ3vY.jpeg");
});

_.table.ReadTableRowColumnData(3, 0).then(($cellData) => {
expect($cellData).to.eq("https://wallpaperaccess.com/full/812632.jpg");
expect($cellData).to.eq(
"https://docs.appsmith.com/img/replyto-logo_6yaZHFIeU.jpeg",
);
});

_.table.AssertURLColumnNavigation(
1,
0,
"https://wallpaperaccess.com/full/1688623.jpg",
"https://docs.appsmith.com/img/Appsmith-Login-Screen-Shows-SAML.jpg",
);
// _.table.AssertURLColumnNavigation(
// 2,
// 0,
// "https://wallpaperaccess.com/full/2117775.jpg",
// "https://docs.appsmith.com/img/zapier-logo_odZ9wZQ3vY.jpeg",
// );

_.deployMode.NavigateBacktoEditor();
Expand All @@ -114,30 +121,34 @@ describe(
_.deployMode.DeployApp();

_.table.ReadTableRowColumnData(0, 0).then(($cellData) => {
expect($cellData).to.eq("1376499.jpg");
expect($cellData).contains("cube-logo_S50__hLNq.jpeg");
});

_.table.ReadTableRowColumnData(1, 0).then(($cellData) => {
expect($cellData).to.eq("https://wallpaperaccess.com/full/1688623.jpg");
expect($cellData).to.eq(
"https://docs.appsmith.com/img/Appsmith-Login-Screen-Shows-SAML.jpg",
);
});

_.table.ReadTableRowColumnData(2, 0).then(($cellData) => {
expect($cellData).to.eq("2117775.jpg");
expect($cellData).contains("zapier-logo_odZ9wZQ3vY.jpeg");
});

_.table.ReadTableRowColumnData(3, 0).then(($cellData) => {
expect($cellData).to.eq("https://wallpaperaccess.com/full/812632.jpg");
expect($cellData).to.eq(
"https://docs.appsmith.com/img/replyto-logo_6yaZHFIeU.jpeg",
);
});

_.table.AssertURLColumnNavigation(
0,
0,
"https://wallpaperaccess.com/full/1376499.jpg",
"https://docs.appsmith.com/img/cube-logo_S50__hLNq.jpeg",
);
// _.table.AssertURLColumnNavigation(
// 3,
// 0,
// "https://wallpaperaccess.com/full/812632.jpg",
// "https://docs.appsmith.com/img/replyto-logo_6yaZHFIeU.jpeg",
// );

_.deployMode.NavigateBacktoEditor();
Expand Down
8 changes: 4 additions & 4 deletions app/client/cypress/fixtures/TestDataSet1.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,19 +441,19 @@
],
"TableURLColumnType": [
{
"image": "https://wallpaperaccess.com/full/1376499.jpg",
"image": "https://docs.appsmith.com/img/cube-logo_S50__hLNq.jpeg",
"userName": "Michael Lawson"
},
{
"image": "https://wallpaperaccess.com/full/1688623.jpg",
"image": "https://docs.appsmith.com/img/Appsmith-Login-Screen-Shows-SAML.jpg",
"userName": "Lindsay Ferguson"
},
{
"image": "https://wallpaperaccess.com/full/2117775.jpg",
"image": "https://docs.appsmith.com/img/zapier-logo_odZ9wZQ3vY.jpeg",
"userName": "Byron Fields"
},
{
"image": "https://wallpaperaccess.com/full/812632.jpg",
"image": "https://docs.appsmith.com/img/replyto-logo_6yaZHFIeU.jpeg",
"userName": "Toby William"
}
],
Expand Down
8 changes: 4 additions & 4 deletions app/client/cypress/fixtures/modalWidgetTestApp.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
"leftColumn": 0.0,
"defaultImage": "https://assets.appsmith.com/widgets/default.png",
"key": "an3dz32jnz",
"image": "https://jpeg.org/images/jpegsystems-home.jpg",
"image": "https://community.appsmith.com/sites/default/files/styles/small_thumbnail/public/2024-03/aws-logo.jpg",
"isDeprecated": false,
"rightColumn": 16.0,
"objectFit": "cover",
Expand Down Expand Up @@ -1075,7 +1075,7 @@
"imageShape": "RECTANGLE",
"leftColumn": 32.0,
"dynamicBindingPathList": [{ "key": "borderRadius" }],
"defaultImage": "https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/5eeea355389655.59822ff824b72.gif",
"defaultImage": "https://docs.appsmith.com/img/multi-update-sql.gif",
"key": "an3dz32jnz",
"image": "",
"isDeprecated": false,
Expand Down Expand Up @@ -4225,7 +4225,7 @@
"leftColumn": 0.0,
"defaultImage": "https://assets.appsmith.com/widgets/default.png",
"key": "an3dz32jnz",
"image": "https://jpeg.org/images/jpegsystems-home.jpg",
"image": "https://community.appsmith.com/sites/default/files/styles/small_thumbnail/public/2024-03/aws-logo.jpg",
"isDeprecated": false,
"rightColumn": 16.0,
"objectFit": "cover",
Expand Down Expand Up @@ -4790,7 +4790,7 @@
"imageShape": "RECTANGLE",
"leftColumn": 32.0,
"dynamicBindingPathList": [{ "key": "borderRadius" }],
"defaultImage": "https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/5eeea355389655.59822ff824b72.gif",
"defaultImage": "https://docs.appsmith.com/img/multi-update-sql.gif",
"key": "an3dz32jnz",
"image": "",
"isDeprecated": false,
Expand Down

0 comments on commit f71d473

Please sign in to comment.