Skip to content

Commit

Permalink
Merge pull request #8340 from filipefurtad0/enterprises_into_system
Browse files Browse the repository at this point in the history
Enterprises into system
  • Loading branch information
jibees authored Oct 20, 2021
2 parents c642b98 + c7eed5a commit 8852fe1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "spec_helper"
require "system_helper"

describe "Business Address" do
include WebHelper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "spec_helper"
require "system_helper"

describe "Managing enterprise images" do
include WebHelper
Expand All @@ -18,6 +18,10 @@
end

describe "images for an enterprise" do

let(:alert_text_logo) {'The logo will be removed immediately after you confirm'.strip}
let(:alert_text_promo) {'The promo image will be removed immediately after you confirm.'.strip}

def go_to_images
within(".side_menu") do
click_link "Images"
Expand Down Expand Up @@ -53,8 +57,9 @@ def go_to_images

# Removing image
within ".page-admin-enterprises-form__logo-field-group" do
click_on "Remove Image"
accept_js_alert
accept_alert(alert_text_logo) do
click_on "Remove Image"
end
end

expect(page).to have_content("Logo removed successfully")
Expand Down Expand Up @@ -91,8 +96,9 @@ def go_to_images

# Removing image
within ".page-admin-enterprises-form__promo-image-field-group" do
click_on "Remove Image"
accept_js_alert
accept_alert(alert_text_promo) do
click_on "Remove Image"
end
end

expect(page).to have_content("Promo image removed successfully")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require 'spec_helper'
require 'system_helper'

describe 'Enterprises Index' do
include WebHelper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "spec_helper"
require "system_helper"

describe "Uploading Terms and Conditions PDF" do
include AuthenticationHelper
Expand Down

0 comments on commit 8852fe1

Please sign in to comment.