Skip to content

Commit

Permalink
update test suites (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaBuvx authored Jan 29, 2025
1 parent b27c733 commit 5996b64
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 68 deletions.
13 changes: 13 additions & 0 deletions lib/testing_site_onlyoffice/open_pages/open_all_enterprise_page.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module TestingSiteOnlyoffice
# Helper for directly opening enterprise pages,
# as it was removed from the site menu but still needs testing
module OpenAllEnterprisePage
def open_for_enterprise_page
url = "#{config.server}/for-enterprises.aspx"
@instance.webdriver.open(url)
SiteEnterpriseOverview.new(@instance)
end
end
end
2 changes: 2 additions & 0 deletions lib/testing_site_onlyoffice/site_home_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
require_relative 'comparison_pages/comparison_ms_office'
require_relative 'open_pages/open_workspace_sign_in'
require_relative 'open_pages/open_download_pages'
require_relative 'open_pages/open_all_enterprise_page'

module TestingSiteOnlyoffice
# Site home page
Expand All @@ -163,6 +164,7 @@ class SiteHomePage
include SiteUninstallFeedbackOpeningPages
include OpenWorkspaceSignIn
include OpenDownloadPages
include OpenAllEnterprisePage

link(:see_it_in_action, xpath: '//a[@id = "seeItInAction_Default"]')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
describe 'All enterprise solutions' do
before do
@site_home_page, @test = TestingSiteOnlyoffice::SiteHelper.new.open_page_teamlab_office(config)
@all_enterprise_solutions = @site_home_page.click_enterprises
@all_enterprise_solutions = @site_home_page.open_for_enterprise_page
end

after do |example|
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
describe 'Onlyoffice Docs Developer edition download' do
before do
site_home_page, @test = TestingSiteOnlyoffice::SiteHelper.new.open_page_teamlab_office(config)
@download_onlyoffice_docs_page = site_home_page.click_link_on_toolbar(:get_onlyoffice_docs_developer)
@download_onlyoffice_docs_page = site_home_page.click_link_on_toolbar(:download_docs_developer)
end

after do |example|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
describe 'Onlyoffice Docs Enterprise edition download' do
before do
site_home_page, @test = TestingSiteOnlyoffice::SiteHelper.new.open_page_teamlab_office(config)
@download_commercial_page = site_home_page.click_link_on_toolbar(:get_onlyoffice_docs_enterprise)
@download_commercial_page = site_home_page.click_link_on_toolbar(:download_docs_enterprise)
end

it_behaves_like 'commercial_installer_download', 'Docs_Enterprise',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
describe 'Onlyoffice Workspace Community edition download' do
before do
site_home_page, @test = TestingSiteOnlyoffice::SiteHelper.new.open_page_teamlab_office(config)
@workspace_community_page = site_home_page.click_link_on_toolbar(:get_onlyoffice_workspace_on_premises).site_workspace_community_download
@workspace_community_page = site_home_page.open_download_workspace_enterprise_page.site_workspace_community_download
end

TestingSiteOnlyoffice::SiteDownloadData.workspace_community.each do |installer|
Expand Down

0 comments on commit 5996b64

Please sign in to comment.