Skip to content

Commit

Permalink
Use entire dimension instead of visible to set container fixed size (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jalal246 authored Sep 6, 2023
1 parent 7fbc614 commit e34c943
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ context(
cy.get("#item-rest-container-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 514.812)",
"matrix(1, 0, 0, 1, 0, 515.125)",
);

cy.get("#item-rest-container-right").should(
Expand Down Expand Up @@ -252,7 +252,7 @@ context(
cy.get("#item-rest-container-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 514.812)",
"matrix(1, 0, 0, 1, 0, 515.125)",
);
});

Expand All @@ -272,37 +272,37 @@ context(
cy.get("#item-rest-container-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 423.781)",
"matrix(1, 0, 0, 1, 0, 423.938)",
);

cy.get("#item-rest-container-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);
});

Expand Down Expand Up @@ -337,43 +337,43 @@ context(
cy.get("#item-rest-container-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 423.781)",
"matrix(1, 0, 0, 1, 0, 423.938)",
);

cy.get("#item-rest-container-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 423.781)",
"matrix(1, 0, 0, 1, 0, 423.938)",
);

cy.get("#item-rest-container-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-container-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);
});
});
Expand Down Expand Up @@ -406,7 +406,7 @@ context(
cy.get("#item-rest-container-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);
});

Expand Down Expand Up @@ -435,7 +435,7 @@ context(
cy.get("#item-rest-container-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);
});

Expand Down Expand Up @@ -464,7 +464,7 @@ context(
cy.get("#item-rest-container-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 446.375)",
"matrix(1, 0, 0, 1, 0, 446.219)",
);
});

Expand All @@ -478,43 +478,43 @@ context(
cy.get("#item-rest-container-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 340.594)",
"matrix(1, 0, 0, 1, 0, 340.75)",
);

cy.get("#item-rest-container-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 340.594)",
"matrix(1, 0, 0, 1, 0, 340.75)",
);

cy.get("#item-rest-container-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 340.594)",
"matrix(1, 0, 0, 1, 0, 340.75)",
);

cy.get("#item-rest-container-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257.406)",
"matrix(1, 0, 0, 1, 0, -257.562)",
);

cy.get("#item-rest-container-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257.406)",
"matrix(1, 0, 0, 1, 0, -257.562)",
);

cy.get("#item-rest-container-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257.406)",
"matrix(1, 0, 0, 1, 0, -257.562)",
);

cy.get("#item-rest-container-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257.406)",
"matrix(1, 0, 0, 1, 0, -257.562)",
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ context(
cy.get("#item-rest-container-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257)",
"matrix(1, 0, 0, 1, 0, -257.844)",
);
});

Expand All @@ -164,7 +164,7 @@ context(
cy.get("#item-rest-container-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257.406)",
"matrix(1, 0, 0, 1, 0, -257.562)",
);

cy.get("#item-rest-container-left").should(
Expand Down Expand Up @@ -233,13 +233,13 @@ context(
cy.get("#item-rest-container-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -91.0312)",
"matrix(1, 0, 0, 1, 0, -91.1875)",
);

cy.get("#item-rest-container-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -91.0312)",
"matrix(1, 0, 0, 1, 0, -91.1875)",
);
});

Expand Down Expand Up @@ -268,13 +268,13 @@ context(
cy.get("#item-rest-container-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -91.0312)",
"matrix(1, 0, 0, 1, 0, -91.1875)",
);

cy.get("#item-rest-container-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -91.0312)",
"matrix(1, 0, 0, 1, 0, -91.1875)",
);
});

Expand Down Expand Up @@ -303,7 +303,7 @@ context(
cy.get("#item-rest-container-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 166.562)",
"matrix(1, 0, 0, 1, 0, 166.719)",
);
});

Expand Down Expand Up @@ -350,19 +350,19 @@ context(
cy.get("#item-rest-container-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -257.406)",
"matrix(1, 0, 0, 1, 0, -257.562)",
);

cy.get("#item-rest-container-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -91.0312)",
"matrix(1, 0, 0, 1, 0, -91.1875)",
);

cy.get("#item-rest-container-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -91.0312)",
"matrix(1, 0, 0, 1, 0, -91.1875)",
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ context(
cy.get("#item-rest-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 514.812)",
"matrix(1, 0, 0, 1, 0, 515.125)",
);

cy.get("#item-rest-right").should(
Expand Down Expand Up @@ -252,7 +252,7 @@ context(
cy.get("#item-rest-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 514.812)",
"matrix(1, 0, 0, 1, 0, 515.125)",
);
});

Expand All @@ -272,37 +272,37 @@ context(
cy.get("#item-rest-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 423.781)",
"matrix(1, 0, 0, 1, 0, 423.938)",
);

cy.get("#item-rest-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);
});

Expand Down Expand Up @@ -337,43 +337,43 @@ context(
cy.get("#item-rest-left").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 423.781)",
"matrix(1, 0, 0, 1, 0, 423.938)",
);

cy.get("#item-rest-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, 423.781)",
"matrix(1, 0, 0, 1, 0, 423.938)",
);

cy.get("#item-rest-left-right").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-top").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-top-bottom").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);

cy.get("#item-rest-all").should(
"have.css",
"transform",
"matrix(1, 0, 0, 1, 0, -174.219)",
"matrix(1, 0, 0, 1, 0, -174.375)",
);
});
});
Expand Down
Loading

0 comments on commit e34c943

Please sign in to comment.