Skip to content

Commit

Permalink
Merge branch 'develop' into feature/969-added-helptext
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj authored Mar 25, 2024
2 parents d21d46f + 2e81aa7 commit 70de5d2
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 204 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file.
- [#236](https://github.com/os2display/display-admin-client/pull/236)
- Add help text to activation code form.
- Fixed warnings raised when compiling.
- [#234](https://github.com/os2display/display-admin-client/pull/234)
- Cleaned up code flow in playlist saving.
- Changed to chaining relations puts.
- [#235](https://github.com/os2display/display-admin-client/pull/235)
- Added roles to users list.
- [#233](https://github.com/os2display/display-admin-client/pull/233)
Expand Down
20 changes: 0 additions & 20 deletions src/components/playlist/campaign.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,6 @@ describe("Campaign pages work", () => {
cy.get("#slides-section").find("tbody").should("not.exist");
});

it("It displays success toast on save", () => {
// Mock successful response on post
cy.intercept("PUT", "**/playlists/*", {
statusCode: 201,
fixture: "playlists/playlist-successful.json",
});

// Mock successful response on get
cy.intercept("GET", "**/playlists/*", {
fixture: "playlists/playlist-successful.json",
});

cy.visit("/campaign/edit/123");

// Displays success toast and redirects
cy.get(".Toastify").find(".Toastify__toast--success").should("not.exist");
cy.get("#save_playlist").click();
cy.get(".Toastify").find(".Toastify__toast--success").contains("gemt");
});

it("It display error toast on save error", () => {
// Mock error response on post
cy.intercept("PUT", "**/playlists/*", {
Expand Down
Loading

0 comments on commit 70de5d2

Please sign in to comment.