fix after rebase

This commit is contained in:
Bilal
2020-09-01 20:59:53 +03:00
parent 8cbe368e24
commit 928ef05f2e
3 changed files with 29 additions and 5 deletions

View File

@@ -197,13 +197,13 @@ RSpec.describe BroadcastsController, type: :controller do
context "when director mode is enabled" do
it "shows the video embed" do
get :show, params: { project_id: project, id: broadcast, director_mode: true }
get :show, params: { project_id: project, id: broadcast }
expect(response.body).to have_selector("iframe", text: "video player")
end
it "renders the view dropdown with a director mode disable option" do
get :show, params: { project_id: project, id: broadcast, director_mode: true }
get :show, params: { project_id: project, id: broadcast }
expect(response.body).to have_content broadcast.name
expect(response.body).to have_selector(".custom-control-label", text: "Director Mode")