Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Sep 12, 2024
1 parent b9413a3 commit c21d6b8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions cypress/e2e/resource_spec/filter.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ describe("Resource filter", () => {
cy.intercept(/\/api\/v1\/resource/).as("resource_filter");
cy.contains("Filters").click();
cy.get("input[name='created_date_start']").click();
cy.get("[data-test-id='slide-over-container']")
.filter(":visible")
.scrollTo(100, 100);
cy.get("#date-1").click();
cy.get("[data-test-id='slide-over-container']")
.filter(":visible")
.scrollTo(100, 100);
cy.get("#date-1").click();
cy.get("body").click(0, 0);
cy.contains("Apply").click();
Expand All @@ -79,8 +85,15 @@ describe("Resource filter", () => {
cy.intercept(/\/api\/v1\/resource/).as("resource_filter");
cy.contains("Filters").click();
cy.get("input[name='modified_date_start']").click();
cy.get("[data-test-id='slide-over-container']")
.filter(":visible")
.scrollTo(100, 100);
cy.get("#date-1").click();
cy.get("[data-test-id='slide-over-container']")
.filter(":visible")
.scrollTo(100, 100);
cy.get("#date-1").click();
cy.get("body").click(0, 0);
cy.contains("Apply").click();
cy.wait("@resource_filter");
});
Expand Down
7 changes: 6 additions & 1 deletion src/CAREUI/interactive/SlideOver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ export default function SlideOver({
<h1 className="w-full text-xl font-black">{title}</h1>
</div>
</div>
<div className="flex-1 overflow-auto p-4">{children}</div>
<div
className="flex-1 overflow-auto p-4"
data-test-id="slide-over-container"
>
{children}
</div>
</div>
)}
</DialogPanel>
Expand Down

0 comments on commit c21d6b8

Please sign in to comment.