Skip to content

Commit

Permalink
updated test for publish drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
umar8hassan committed May 21, 2024
1 parent 0bc3078 commit 24913f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/components/PublishDrawer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { IntegrationTestHelper } from "../testing_utils"

import PublishDrawer from "./PublishDrawer"

import { Website } from "../types/websites"
import { Starter, Website } from "../types/websites"
import userEvent from "@testing-library/user-event"
import { waitFor, screen } from "@testing-library/react"
import * as dom from "@testing-library/dom"
Expand Down Expand Up @@ -203,7 +203,7 @@ describe("PublishDrawer", () => {
await simulateClickPublish(wrapper, action)
wrapper.update()
expect(wrapper.find(".btn-publish").prop("disabled")).toBe(
action === "production",
action === "production" && website.starter?.name !== Starter.ocw_www,
)
})

Expand Down

0 comments on commit 24913f4

Please sign in to comment.