From 3f3194a22d1a3d0d164700ed6da437ee91188264 Mon Sep 17 00:00:00 2001 From: Julia Bubnova <99170537+JuliaBuvx@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:29:17 +0300 Subject: [PATCH] update test suites (#2231) --- lib/testing_site_onlyoffice/about/site_about_contacts.rb | 2 +- lib/testing_site_onlyoffice/features/site_features_docs.rb | 2 +- .../get_onlyoffice/site_doc_registration_page_spec.rb | 2 +- spec/functional/smoke/smoke_docs_open_stripe_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/testing_site_onlyoffice/about/site_about_contacts.rb b/lib/testing_site_onlyoffice/about/site_about_contacts.rb index 5b38aa2f..8ce99db0 100644 --- a/lib/testing_site_onlyoffice/about/site_about_contacts.rb +++ b/lib/testing_site_onlyoffice/about/site_about_contacts.rb @@ -29,7 +29,7 @@ def list_of_offices_on_page end def all_offices_present? - list_of_offices_on_page == ['Singapore', 'U.S.A.', 'Latvia', 'United Kingdom', 'Armenia', 'Singapore', 'Uzbekistan', 'Serbia', 'Contact us'] + list_of_offices_on_page == ['Singapore', 'U.S.A.', 'Latvia', 'United Kingdom', 'Armenia', 'Singapore', 'Uzbekistan', 'Serbia', 'China', 'Contact us'] end end end diff --git a/lib/testing_site_onlyoffice/features/site_features_docs.rb b/lib/testing_site_onlyoffice/features/site_features_docs.rb index 2921f7ec..6484c5a5 100644 --- a/lib/testing_site_onlyoffice/features/site_features_docs.rb +++ b/lib/testing_site_onlyoffice/features/site_features_docs.rb @@ -7,7 +7,7 @@ class SiteProductsDocs include PageObject include SiteToolbar - link(:run_on_your_own_server, xpath: '//div[@class="dp_header"]//a[contains(@href, "download-docs.aspx")]') + link(:run_on_your_own_server, xpath: '//div[@class="dp_header"]//a[contains(@href, "download.aspx")]') def initialize(instance) super(instance.webdriver.driver) diff --git a/spec/functional/get_onlyoffice/site_doc_registration_page_spec.rb b/spec/functional/get_onlyoffice/site_doc_registration_page_spec.rb index d97ee867..8de36897 100644 --- a/spec/functional/get_onlyoffice/site_doc_registration_page_spec.rb +++ b/spec/functional/get_onlyoffice/site_doc_registration_page_spec.rb @@ -19,7 +19,7 @@ describe 'Sign Up for cloud' do it 'Open Stripe page from /docs-registration.aspx and check the e-mail' do - pending('https://bugzilla.onlyoffice.com/show_bug.cgi?id=43150') if config.server.include?('.com') + skip('https://bugzilla.onlyoffice.com/show_bug.cgi?id=43150') if config.server.include?('.com') payment_page = @doc_sign_up_page.submit_correct_data(registration_data) expect(payment_page).to be_a TestingSiteOnlyoffice::StripePaymentPage expect(partner_email.check_email_by_subject({ subject: "#{registration_data.full_name} - Docs Registration Request [from: docs-registration]" }, 300, true)).to be true diff --git a/spec/functional/smoke/smoke_docs_open_stripe_spec.rb b/spec/functional/smoke/smoke_docs_open_stripe_spec.rb index af6dc504..417a7654 100644 --- a/spec/functional/smoke/smoke_docs_open_stripe_spec.rb +++ b/spec/functional/smoke/smoke_docs_open_stripe_spec.rb @@ -23,7 +23,7 @@ end it "Open Stripe page in #{current_language} language from /docs-registration.aspx" do - pending('https://bugzilla.onlyoffice.com/show_bug.cgi?id=43150') if config.server.include?('.com') + skip('https://bugzilla.onlyoffice.com/show_bug.cgi?id=43150') if config.server.include?('.com') payment_page = @doc_sign_up_page.submit_correct_data(registration_data) expect(payment_page).to be_a TestingSiteOnlyoffice::StripePaymentPage end