Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
updating the closeToasts command to close them programatically
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Oct 7, 2021
1 parent 26823a2 commit 157dfd9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Cypress.Commands.add("hideMenu", () => {
});

Cypress.Commands.add("closeToasts", () => {
cy.get(".bp3-toast.bp3-toast-enter-done .bp3-icon-cross").click({
multiple: true
cy.window().then((win) => {
win.__tgClearAllToasts();
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"redux-thunk": "2.3.0",
"reselect": "^4.0.0",
"shortid": "^2.2.16",
"teselagen-react-components": "^30.3.29",
"teselagen-react-components": "^30.3.31",
"tg-react-reflex": "^2.0.10",
"use-local-storage-state": "^10.0.0",
"ve-range-utils": "^2.6.3",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12942,10 +12942,10 @@ terser@^4.6.13:
source-map "~0.6.1"
source-map-support "~0.5.12"

teselagen-react-components@^30.3.29:
version "30.3.29"
resolved "https://registry.yarnpkg.com/teselagen-react-components/-/teselagen-react-components-30.3.29.tgz#241d915a700b25c5808dd9d99b199770b83b9859"
integrity sha512-JqsXm6D4/HCjZTNX0YF8GEdzZUUJhOBx3m1fu5nIWKu0RGL1MeuO+8Qlj1mEZ3ps7sa+Z8kSeHgusB30HLJIOQ==
teselagen-react-components@^30.3.31:
version "30.3.31"
resolved "https://registry.yarnpkg.com/teselagen-react-components/-/teselagen-react-components-30.3.31.tgz#1b731e3e33809039c9ef1ce9fb09f7c0f10996e0"
integrity sha512-GfXDJsQuoSjJSBj/g958azhu/fju24PRK0BNS3gUIHGt9VbL7cPypunHESXLUWb1sSCZ/WT2veANJT0BfdAQbA==
dependencies:
"@blueprintjs/core" "^3.41.0"
"@blueprintjs/datetime" "^3.21.2"
Expand Down

0 comments on commit 157dfd9

Please sign in to comment.