Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enterprises into system #8340

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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