e2e-testing

How to get the json response of a RequestLogger

廉价感情. 提交于 2021-01-27 06:10:13
问题 RequestLogger A have this test outside the main test controller, using page model and this recipe. /** Used to get the periodic analytic id. Whenever we are viewing an asset, the server must respond with an id. This id is later used by the client, to send periodic analytics. @param {object} t Testcafe's test controller @param {object} logger A testcafe's RequestLogger. @returns {string} Returns the periodic analytic id. */ async getPeriodicAnalyticId(t, logger) { const logPrefix = 'Get

How to stop protractor from downloading latest chromedriver?

杀马特。学长 韩版系。学妹 提交于 2021-01-27 05:54:28
问题 I am running E2E tests using Protractor on Bamboo. I got this error unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) Then I found that I had to downgrade to 2.37 version of Chromedriver. I found that here "https://github.com/angular/protractor/issues/4850" . I found a way to download a specific version of chromedriver here https://medium.com/@cnishina/webdriver-manager-a-node-module-c33a820f5eb . So I am using webdriver-manager

How to stop protractor from downloading latest chromedriver?

青春壹個敷衍的年華 提交于 2021-01-27 05:54:06
问题 I am running E2E tests using Protractor on Bamboo. I got this error unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) Then I found that I had to downgrade to 2.37 version of Chromedriver. I found that here "https://github.com/angular/protractor/issues/4850" . I found a way to download a specific version of chromedriver here https://medium.com/@cnishina/webdriver-manager-a-node-module-c33a820f5eb . So I am using webdriver-manager

How can I run my tests with older chrome version in cypress

 ̄綄美尐妖づ 提交于 2020-12-15 03:42:59
问题 Now my cypress version is 3.8.2 And when I am opening cypress window there are chrome version is 79. I want to run my tests in chrome 70 version. I updated my chrome in my computer and now it 70 version. When I am running my test with selected command npx vue-cli-service test:e2e --headless --browser chrome Test is running in Chrome 79. How can I change my chrome version for running. 回答1: As per the documentation, the default chrome location to be auto-detected by cypress is "C:/Program Files

How to override standard testcafe errors?

末鹿安然 提交于 2020-12-15 03:26:39
问题 I need to override standard testcafe error messages by adding there Selector's input locator - this way I will know more about failure and can debug that manually at least by manually checking ability for selector to be found. When I try just to catch error by this code: try { const selector = Selector('basdf') await t.click(selector); } catch (e) { console.log(e); } I'm getting this object: { code: 'E24', isTestCafeError: true, callsite: CallsiteRecord { filename: '/Users/myPath/helper_test

How to disable or bypass MSAL authentication when running Angular e2e tests?

回眸只為那壹抹淺笑 提交于 2020-12-06 07:03:05
问题 I want to set up some end to end tests for my Angular application, which requires the use of the MSAL library to authenticate with some downstream services. When I try to run my e2e tests locally, the MSAL library is forcing me to authenticate with a username/password. This is a problem because our CI/CD e2e testing should not have any human-intervention; thus I am looking for a way to either bypass the MSAL authentication or set up a service-account to login. Unfortunately there is not a lot

How to set the browser's language in Cypress.io (electron/chrome)?

拟墨画扇 提交于 2020-12-01 09:49:26
问题 My question is about configuring Cypress to launch a browser instance in a certain language. In order to: make assertions on localized (i18n) text labels? check i18n features (switching between languages) bypass issues of Continuous Integration (CI/CD) when, for example, on a local computer, the browser default to fr_FR , and on the CI/CD VM it defaults to en_US ? I tried (without much success): using LANGUAGE=en_US from the terminal invocation, using the Browser's API plugin (see Cypress'