From dcac21c5733ff9ffad1e1644c270d3a44c1098ff Mon Sep 17 00:00:00 2001 From: dmitrykurmanov Date: Mon, 11 Dec 2023 12:24:58 +0400 Subject: [PATCH] work for the https://github.com/surveyjs/private-tasks/issues/349 --- V2/helper.js | 2 +- payment/Common/cart.testcafe.js | 2 +- playwright-report/index.html | 2 +- playwright/example.spec.ts | 2 +- playwright/form-library-page.spec.ts | 2 +- playwright/licences-expired-notifications.spec.ts | 2 +- playwright/my-surveys.spec.ts | 2 +- playwright/payment.spec.ts | 2 +- surveyjsio mobile version/docs.testcafe.js | 2 +- surveyjsio mobile version/examples.testcafe.js | 2 +- surveyjsio mobile version/mobile_menu.testcafe.js | 2 +- surveyjstest/Common/account.testcafe.js | 2 +- surveyjstest/Common/basics.testcafe.js | 2 +- surveyjstest/Common/manage.testcafe.js | 4 ++-- surveyjstest/Common/pricing.testcafe.js | 2 +- surveyjstest/DocsCheck/docs-check.testcafe | 2 +- warmup/_warmup.testcafe.js | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/V2/helper.js b/V2/helper.js index a9de2d8..ad879b0 100644 --- a/V2/helper.js +++ b/V2/helper.js @@ -9,7 +9,7 @@ const args = minimist(process.argv.slice(2)); const envDev = args['env-dev']; const envNew = args['env-new']; -const productionURL = 'https://surveyjstest.azurewebsites.net/'; +const productionURL = 'https://surveyjsio-test.azurewebsites.net/'; export const url = envDev ? 'https://localhost:44388/' : productionURL; export async function checkElementScreenshot(screenshotName, element, t) { diff --git a/payment/Common/cart.testcafe.js b/payment/Common/cart.testcafe.js index d2cea22..2e4cddf 100644 --- a/payment/Common/cart.testcafe.js +++ b/payment/Common/cart.testcafe.js @@ -1,7 +1,7 @@ import { Selector , fixture, test } from 'testcafe'; //const domain = 'http://localhost:62946'; -const domain = "https://surveyjstest.azurewebsites.net"; +const domain = "https://surveyjsio-test.azurewebsites.net"; fixture`account` .page(domain + '/pricing').beforeEach(async t => { diff --git a/playwright-report/index.html b/playwright-report/index.html index 9ff56a5..035301e 100644 --- a/playwright-report/index.html +++ b/playwright-report/index.html @@ -59,4 +59,4 @@ \ No newline at end of file +window.playwrightReportBase64 = "data:application/zip;base64,UEsDBBQAAAgIAKFpbldasKM4VgYAAPkuAAAZAAAAZDVjNDM3MjFjMjNkNjBiYzNiOTMuanNvbu1a4XObNhT/V3Rc75rkDAZhIGbX3KW5buuHbblbug+rs1YG2VYDiBMiruf6f5/AxMgODtix3TQLuVwg6L2n9/R7vychTZUBCfB7X3EV3/I6pgMND5q+rfc9s981lVb+/ncUYtEiIB6OPJyo+GtMGPbViHIyIB7ihEaJlsTY03giZDhOxF/34zS/W6tdxXa/D08N7CCj70Do2wPbycQJD2R7oLAHluyJhjGjX7DHi+5djBgVNy0loPMmijvNu79J1wMSifZmS/FokIZChTVrKX7KCoWw07VgS0GRkC+64X68bik05R7Ne5FGwoToFPazDiI+mjdgOEmDIij31CUcMX5FcnmoQ1M1DNXoXOld14CuaWvdjv23kungbKK4eiaA4yLARaze4gFlGPxK6U3mRr1GJ9NY9sSwoV2lt8/oOMHsgkYcf+VahMeXaIhrLZxqZgcuW4CmURq4zgKcRlwYnsn3rdJyLOxoTAS2iTXLOV3xxxFCEYljLPQqvVTXjf5HPQTFXVfcGgb4Vjya3RAA6V27DX6j3g3gIwxQTICHggD05yGO0C0ZCivRsBRe6O9F1aZgtSnTDtEYES69y9y+ezRDrXyTh+Lo7hmGn0/aJyftV1PRvw8smH2+1xsh3pIUSyaTSeRJb3LNoJR6cya9nNb5Jq5vFWaMu24YeZPF9U/xbwjDDeJnrsRvabBOKhQpS1h7PCMYsKQEozN7ALJDyunRiPM4cdvtJGW3ePIlyXhQQ/+mDI9xPyHiUaQSb7cDOiTRcQOA27q+DHCnA81aiEP9IYj/QgGnOcZl0NWPBlyTOJugOY+SBOZX01SAeB4PCcrHpfBPzTt4CEjCHaR0DkvKpDi8Rq8rnZeEBH45ZkdTMELJleDkspFb4bNQee55OObgPAgk3WBWrd0TeXFzVB32Z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ZW2Ud9mdC17AtF8w5T+VFeV/Mv2voO4zKUCrss++lG10VQTvEKVsnRZYuVRf19pc11pOKAAQBxdur3c5P6Kd9Hp3344IVbPvRmp+SLzXiwM0GTMyHPFer1kpFSVUVM4yXsp1Tqw8FQSoDJCoytnRa8Q58kYhjvJD19cZS9IbxR2gIMGz69l/UEsDBBQAAAgIAKFpblcaTnbcMgEAALQCAAALAAAAcmVwb3J0Lmpzb261ks1ugzAQhF+l2rMTgUn48bWnXvoCUQ7GXhQ3xkZ4kVpFvHttQivaqoceCpdFnp1vPOIGPZLUkiSIG+hplGS8A8HLrCj3zaFJT11n9cygMxYDiNNtmZ40CNBHdSgqnite6DJrVdE2BdyVz7LHqLBGoVMYdvg6mBH1znkynVELJ+zDgGpPIe4QBrq7p+lX9x2WbcvrHCuZtxXnuuzKKq0bslvew8p7+MKLwmH0L6hojfd4GX0cGFiv1qvfr/eX6Na4qC8YKG+nPlocY1ubLg/NkTOQLu6vMcTpzMBPpPySYnIREUOhTgElXVbBFUQnbUAGI4bJrv1IIqkuPbrl+zzHl0GI1iGFpwixIHIGn54iY1tEOuusvL4tB+FqhmEVbYDf4s+JsakukT/K+1/6jx9xfgdQSwECPwMUAAAICAChaW5XWrCjOFYGAAD5LgAAGQAAAAAAAAAAAAAAtIEAAAAAZDVjNDM3MjFjMjNkNjBiYzNiOTMuanNvblBLAQI/AxQAAAgIAKFpblcaTnbcMgEAALQCAAALAAAAAAAAAAAAAAC0gY0GAAByZXBvcnQuanNvblBLBQYAAAAAAgACAIAAAADoBwAAAAA="; \ No newline at end of file diff --git a/playwright/example.spec.ts b/playwright/example.spec.ts index cceec3f..4d1a895 100644 --- a/playwright/example.spec.ts +++ b/playwright/example.spec.ts @@ -1,6 +1,6 @@ // import { test, expect } from '@playwright/test'; -// const url = "https://surveyjstest.azurewebsites.net/"; +// const url = "https://surveyjsio-test.azurewebsites.net/"; // test('SurveyJS Site Index Page', async ({ page }) => { // const height = 10000; diff --git a/playwright/form-library-page.spec.ts b/playwright/form-library-page.spec.ts index 59980f8..dab4cec 100644 --- a/playwright/form-library-page.spec.ts +++ b/playwright/form-library-page.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; -const domain = "https://surveyjstest.azurewebsites.net"; +const domain = "https://surveyjsio-test.azurewebsites.net"; // const domain = "http://localhost:62946"; const url = domain + "/form-library"; diff --git a/playwright/licences-expired-notifications.spec.ts b/playwright/licences-expired-notifications.spec.ts index 28976b9..d4668c8 100644 --- a/playwright/licences-expired-notifications.spec.ts +++ b/playwright/licences-expired-notifications.spec.ts @@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test'; test("licences expired notifications", async ({ page, browser }) => { const testerEmail = "Sych-Test1@gmail.com"; const testerPass = "Sych-Test1@gmail.com"; - const url = "https://surveyjstest.azurewebsites.net"; + const url = "https://surveyjsio-test.azurewebsites.net"; //const url = "http://localhost:62946"; const apiUrl = "api/ManageUser/getLicensesExpirationPopupType?expiresSoonNotificationDateTime=null&expiredNotificationDateTime=null"; const bannerExpiredTitle = "Your renewal subscription has expired."; diff --git a/playwright/my-surveys.spec.ts b/playwright/my-surveys.spec.ts index deb3e42..05e04b1 100644 --- a/playwright/my-surveys.spec.ts +++ b/playwright/my-surveys.spec.ts @@ -5,7 +5,7 @@ test("remember organization", async ({ page, browser }) => { const testerEmail = "Sych-Test1@gmail.com"; const testerPass = "Sych-Test1@gmail.com"; - const url = "https://surveyjstest.azurewebsites.net/"; + const url = "https://surveyjsio-test.azurewebsites.net/"; // const url = "http://localhost:62946/"; const personalSurveys = "Personal Surveys"; const organizationSurveys = "55"; diff --git a/playwright/payment.spec.ts b/playwright/payment.spec.ts index 75985bc..e7cc284 100644 --- a/playwright/payment.spec.ts +++ b/playwright/payment.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; -const url = "https://surveyjstest.azurewebsites.net"; +const url = "https://surveyjsio-test.azurewebsites.net"; // const url = "http://localhost:62946"; test('Cart: vat number field', async ({ page }) => { diff --git a/surveyjsio mobile version/docs.testcafe.js b/surveyjsio mobile version/docs.testcafe.js index 3fbe1fc..7708bbe 100644 --- a/surveyjsio mobile version/docs.testcafe.js +++ b/surveyjsio mobile version/docs.testcafe.js @@ -2,7 +2,7 @@ import { Selector , fixture, test } from 'testcafe'; import { getIUnderstandButton } from './helpers'; fixture `docs` - .page `https://surveyjstest.azurewebsites.net/Documentation/Library`; + .page `https://surveyjsio-test.azurewebsites.net/Documentation/Library`; test('Article', async t => { await t diff --git a/surveyjsio mobile version/examples.testcafe.js b/surveyjsio mobile version/examples.testcafe.js index 9395ce2..8812bae 100644 --- a/surveyjsio mobile version/examples.testcafe.js +++ b/surveyjsio mobile version/examples.testcafe.js @@ -2,7 +2,7 @@ import { Selector , fixture, test } from 'testcafe'; import { getIUnderstandButton } from './helpers'; fixture `examples` - .page `https://surveyjstest.azurewebsites.net/Examples/Library`; + .page `https://surveyjsio-test.azurewebsites.net/Examples/Library`; test('Index', async t => { await t diff --git a/surveyjsio mobile version/mobile_menu.testcafe.js b/surveyjsio mobile version/mobile_menu.testcafe.js index cea69b4..4456e12 100644 --- a/surveyjsio mobile version/mobile_menu.testcafe.js +++ b/surveyjsio mobile version/mobile_menu.testcafe.js @@ -2,7 +2,7 @@ import { Selector , fixture, test } from 'testcafe'; import { getIUnderstandButton } from './helpers'; fixture `Mobile Menu` - .page `https://surveyjstest.azurewebsites.net`; + .page `https://surveyjsio-test.azurewebsites.net`; test('Index', async t => { await t diff --git a/surveyjstest/Common/account.testcafe.js b/surveyjstest/Common/account.testcafe.js index c103e50..03fe42d 100644 --- a/surveyjstest/Common/account.testcafe.js +++ b/surveyjstest/Common/account.testcafe.js @@ -2,7 +2,7 @@ import { Selector, ClientFunction, fixture, test } from 'testcafe'; import { getIUnderstandButton } from '../helpers'; fixture`account` - .page`https://surveyjstest.azurewebsites.net/login`.beforeEach(async t => { + .page`https://surveyjsio-test.azurewebsites.net/login`.beforeEach(async t => { const cookiePopupAccept = Selector('.v2-class---banner-footer-actions .v2-class---button'); if(await cookiePopupAccept.exists) { await t.click(cookiePopupAccept); // close cookie msg diff --git a/surveyjstest/Common/basics.testcafe.js b/surveyjstest/Common/basics.testcafe.js index 9fa6995..c27c49b 100644 --- a/surveyjstest/Common/basics.testcafe.js +++ b/surveyjstest/Common/basics.testcafe.js @@ -1,6 +1,6 @@ import { Selector, fixture, test } from 'testcafe'; -fixture`Basics`.page`http://surveyjstest.azurewebsites.net`; +fixture`Basics`.page`http://surveyjsio-test.azurewebsites.net`; // test("Menu Examples test", async (t) => { // await t.maximizeWindow(); diff --git a/surveyjstest/Common/manage.testcafe.js b/surveyjstest/Common/manage.testcafe.js index 249ae32..7a8e6f8 100644 --- a/surveyjstest/Common/manage.testcafe.js +++ b/surveyjstest/Common/manage.testcafe.js @@ -2,7 +2,7 @@ import { Selector, ClientFunction, fixture, test } from 'testcafe'; import { getIUnderstandButton } from '../helpers'; fixture`account` - .page`https://surveyjstest.azurewebsites.net/login`; + .page`https://surveyjsio-test.azurewebsites.net/login`; test('Remove the non-commercial usage text', async t => { await t.maximizeWindow() @@ -26,6 +26,6 @@ test('Remove the non-commercial usage text', async t => { // test const removeNonCommercialTab = Selector('.v2-class---paragraph-link').withText('instructions'); await t - .navigateTo('https://surveyjstest.azurewebsites.net/manage') + .navigateTo('https://surveyjsio-test.azurewebsites.net/manage') .click(removeNonCommercialTab); }); \ No newline at end of file diff --git a/surveyjstest/Common/pricing.testcafe.js b/surveyjstest/Common/pricing.testcafe.js index 64a00b5..17e7558 100644 --- a/surveyjstest/Common/pricing.testcafe.js +++ b/surveyjstest/Common/pricing.testcafe.js @@ -2,7 +2,7 @@ import { Selector, ClientFunction, fixture, test } from 'testcafe'; import { getIUnderstandButton } from '../helpers'; fixture`account` - .page`https://surveyjstest.azurewebsites.net/Account/Login`; + .page`https://surveyjsio-test.azurewebsites.net/Account/Login`; test('Pricing buy test', async t => { await t.maximizeWindow(); diff --git a/surveyjstest/DocsCheck/docs-check.testcafe b/surveyjstest/DocsCheck/docs-check.testcafe index 5079fe1..38afe45 100644 --- a/surveyjstest/DocsCheck/docs-check.testcafe +++ b/surveyjstest/DocsCheck/docs-check.testcafe @@ -1 +1 @@ -{"fixtures":[{"name":"docs-check","pageUrl":"https://surveyjstest.azurewebsites.net","tests":[{"name":"Check","commands":[{"type":"maximize-window","studio":{},"callsite":"0"},{"type":"navigate-to","studio":{},"callsite":"1","url":"https://surveyjstest.azurewebsites.net/Documentation/Pdf-Export?id=surveypdf"},{"type":"assertion","studio":{"assertionMode":"checkElement","selectorPostfix":".exists"},"callsite":"2","assertionType":"eql","actual":{"type":"js-expr","value":"Selector('h1').withText('Something\\'s going wrong.').exists"},"options":{},"expected":{"type":"js-expr","value":"false"}},{"type":"navigate-to","studio":{},"callsite":"3","url":"https://surveyjstest.azurewebsites.net/Documentation/Library?id=surveymodel"},{"type":"assertion","studio":{"assertionMode":"checkElement","selectorPostfix":".exists"},"callsite":"4","assertionType":"eql","actual":{"type":"js-expr","value":"Selector('h1').withText('Something\\'s going wrong.').exists"},"options":{},"expected":{"type":"js-expr","value":"false"}},{"type":"navigate-to","studio":{},"callsite":"5","url":"https://surveyjstest.azurewebsites.net/Documentation/Library?id=LibraryOverview"},{"type":"assertion","studio":{"assertionMode":"checkElement","selectorPostfix":".exists"},"callsite":"6","assertionType":"eql","actual":{"type":"js-expr","value":"Selector('h1').withText('Something\\'s going wrong.').exists"},"options":{},"expected":{"type":"js-expr","value":"false"}}]}]}]} \ No newline at end of file +{"fixtures":[{"name":"docs-check","pageUrl":"https://surveyjsio-test.azurewebsites.net","tests":[{"name":"Check","commands":[{"type":"maximize-window","studio":{},"callsite":"0"},{"type":"navigate-to","studio":{},"callsite":"1","url":"https://surveyjsio-test.azurewebsites.net/Documentation/Pdf-Export?id=surveypdf"},{"type":"assertion","studio":{"assertionMode":"checkElement","selectorPostfix":".exists"},"callsite":"2","assertionType":"eql","actual":{"type":"js-expr","value":"Selector('h1').withText('Something\\'s going wrong.').exists"},"options":{},"expected":{"type":"js-expr","value":"false"}},{"type":"navigate-to","studio":{},"callsite":"3","url":"https://surveyjsio-test.azurewebsites.net/Documentation/Library?id=surveymodel"},{"type":"assertion","studio":{"assertionMode":"checkElement","selectorPostfix":".exists"},"callsite":"4","assertionType":"eql","actual":{"type":"js-expr","value":"Selector('h1').withText('Something\\'s going wrong.').exists"},"options":{},"expected":{"type":"js-expr","value":"false"}},{"type":"navigate-to","studio":{},"callsite":"5","url":"https://surveyjsio-test.azurewebsites.net/Documentation/Library?id=LibraryOverview"},{"type":"assertion","studio":{"assertionMode":"checkElement","selectorPostfix":".exists"},"callsite":"6","assertionType":"eql","actual":{"type":"js-expr","value":"Selector('h1').withText('Something\\'s going wrong.').exists"},"options":{},"expected":{"type":"js-expr","value":"false"}}]}]}]} \ No newline at end of file diff --git a/warmup/_warmup.testcafe.js b/warmup/_warmup.testcafe.js index d0e0a51..f511df5 100644 --- a/warmup/_warmup.testcafe.js +++ b/warmup/_warmup.testcafe.js @@ -1,7 +1,7 @@ import { Selector, fixture, test } from 'testcafe'; fixture `warmup` - .page `https://surveyjstest.azurewebsites.net/Account/Login`; + .page `https://surveyjsio-test.azurewebsites.net/Account/Login`; test('Warmup If Site Is Updating', async t => { const article = Selector('article', { timeout: 1000000 }).exists;