flat-electrician-52949
06/24/2021, 9:48 AMit('shows a ticket number', () => {..
flat-electrician-52949
06/24/2021, 9:49 AMbulky-sundown-74498
06/24/2021, 2:02 PMbulky-sundown-74498
06/24/2021, 2:43 PMexeca
to run the exec command.
It is a wrapper for the const { spawn } = require('child_process');
bulky-sundown-74498
06/24/2021, 2:45 PMbulky-sundown-74498
06/24/2021, 2:50 PMlog: false
and provide your own logs using cy.log
. At least that is how I would do it.ripe-daybreak-97926
06/25/2021, 5:16 AMwooden-parrot-13301
06/25/2021, 10:46 AMvue-cli-service test:e2e
the baseUrl is overridden from CLI.
How do i prevent itnutritious-kilobyte-6207
06/25/2021, 7:34 PMnyc instrument
, and the coverage is getting picked up and reported for the .js
files just fine.
Now the issue is that I have .js.map
files pointing back to the pre-compile CoffeeScript source code but the report does report using the original .coffee
files at all.
Am I missing some step(s) in order to ensure that the .coffee
files are the ones used in the report to show the original code lines?bulky-sundown-74498
06/27/2021, 4:01 PMwooden-advantage-64510
06/28/2021, 2:19 PMelement.getBoundingClientRect
and thought maybe OS based fonts were the curpit but that was a red herring. As a final effort I tried to just switch browsers to chrome
expecting to see no change as Electron is based on Chromium I expected the same failures to happen. But everything passed.
Does anyone have an idea what would cause Electron to behave differently on Linux, while Chrome is working flawless?chilly-island-52477
06/30/2021, 4:41 PMbrief-kite-35331
07/01/2021, 11:38 PMdata = {
email: function () {
const currentTimestamp = new Date().getTime();
return `test${currentTimestamp}@test.com`
},
firstName: 'Max',
lastName: 'Mustermann',
street: 'Some Street',
}
Then in my spec file I do this: cy.fixture(env + '/user-details').as('userDetails');
And in the it
block of the test in the same spec file:
const userDetails = this.userDetails.data;
actions.insertStreet(userDetails.street);
But it says it cannot read property 'street' of undefined. Any ideas how to do it properly? 😅wonderful-match-15836
07/02/2021, 12:09 AMsalmon-oyster-49557
07/05/2021, 6:27 AM4.7.0
), it works when it's not a list.
From what I can tell, all my attempts click and drag the correct places, but no interaction with the element itself is happening. Are there any recent examples of swiping/dragging in a nested element?
Here are some of the things I've tried (that look like they happen, but don't actually interact with the page) to drag a list item from right to left, to no avail:
- Using 'mousedown'
, 'mousemove'
, then 'mouseup'
- both in the same position and without options (which moves it back to the origin)
- Specifying mouse buttons which: 1
, like the https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/testing-dom__drag-drop/cypress/integration/drag_n_drop_spec.js example shows
- Using position: 'right'
then position: 'center'
or 'left'
in .trigger()
- Using clientX
and clientY
in .trigger()
- Using dragstart
, dragenter
, dragleave
, drop
in .trigger()
- Using the cypress-drag-and-drop
plugin (the one that's been fixed for cypress 7+ here: https://github.com/brunocavalcante/cypress-drag-drop/tree/cypress-7-support#options)salmon-oyster-49557
07/05/2021, 6:31 AMcy.disableTutorial(); // Goes straight to the list items
cy.get('ion-list > ion-item-group:nth-child(1) > ion-item-sliding')
// or this selector: cy.get('#main-content > ng-component > ion-tabs > div > ion-router-outlet > page-schedule > ion-content > ion-list > ion-item-group:nth-child(1)')
.trigger('mousedown', {position: "right", force: true })
.trigger('mousemove', {position: "center", force: true })
.trigger('mouseup', {force: true})
Tried a few other variations of mousemove
in that repo, all had issues with is being covered by another element:
- which I'm not seeing in my own attempts on Cypress 7.6.0
brief-kite-35331
07/05/2021, 3:43 PMbrief-kite-35331
07/05/2021, 3:50 PMuser
07/06/2021, 5:19 AM- cypress/run:
requires:
- setup
attach-workspace: true
yarn: true
build: "yarn cypress:dashboard"
record: true
parallel: true
parallelism: 4
context:
- npm_tokens
filters:
branches:
only:
- develop
- /feature-deploy-develop-.*/
When it runs inside of Circle though I get an error saying
The cypress npm package is installed, but the Cypress binary is missing.
We expected the binary to be installed here: /root/.cache/Cypress/7.6.0/Cypress/Cypress
Reasons it may be missing:
- You're caching 'node_modules' but are not caching this path: /root/.cache/Cypress
- You ran 'npm install' at an earlier build step but did not persist: /root/.cache/Cypress
Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
Alternatively, you can run 'cypress install' to download the binary again.
https://on.cypress.io/not-installed-ci-error
----------
Platform: linux (Debian - 10.6)
Cypress Version: 7.6.0
In our setup command we are persisting a whole bunch of files to workspace but should I be adding something for the cypress? Looking at the cypress/install
command it seemed like it would be just redoing the setup steps.
Thanks in advancesalmon-sandwich-36280
07/06/2021, 8:25 AMsalmon-oyster-49557
07/06/2021, 5:12 PMsalmon-oyster-49557
07/06/2021, 5:14 PMbrief-kite-35331
07/07/2021, 3:28 PMgetCheckoutPricesBeforeApplyingVoucher() {
let prices = {
subtotalPrice: 0,
totalPrice: 0,
itemPriceOrderOverview: 0,
totalPriceOrderOverview: 0,
totalWithVATOrderOverview: 0
}
cy.get('[data-cy=subtotalPrice]').invoke('text').as('subtotalPrice');
cy.get('[data-cy=totalPrice]').invoke('text').as('totalPrice');
cy.get('[data-cy=itemPriceOrderOverview]').invoke('text').as('itemPriceOrderOverview');
cy.get('[data-cy=totalPriceOrderOverview]').invoke('text').as('totalPriceOrderOverview');
cy.get('[data-cy=totalWithVATOrderReview]').invoke('text').as('totalWithVATOrderReview');
prices.subtotalPrice = this.subtotalPrice;
prices.subtotalPrice = this.totalPrice;
prices.subtotalPrice = this.itemPriceOrderOverview;
prices.subtotalPrice = this.totalPriceOrderOverview;
prices.subtotalPrice = this.totalWithVATOrderReview;
cy.log(prices.subtotalPrice);
cy.log(prices.totalPrice);
cy.log(prices.itemPriceOrderOverview);
cy.log(prices.totalPriceOrderOverview);
cy.log(prices.totalWithVATOrderOverview);
return prices;
}
The function getCheckoutPricesBeforeApplyingVoucher() is defined in separate class and gets called in my it
block
Basically get the price text from the UI elements and save it to the prices JS object. But for some reason all of the values on this object are 0. I don't know what could be the cause of it. Any ideas?steep-account-67575
07/08/2021, 3:48 PMwonderful-match-15836
07/08/2021, 4:10 PMprices
object - it repeats prices.subtotalPrice
so only that property is getting set. But I wonder if there is some issue with the aliases being used right after they are initialized, I would have thought that those values take a hot second to resolve, and that you'd need a .then
someplace before referencing them. I don't use aliases this way so I'm not sure without experimenting. Is subtotalPrice
and everything else zero?brief-kite-35331
07/08/2021, 4:17 PMbrief-kite-35331
07/08/2021, 4:17 PMbrief-kite-35331
07/08/2021, 4:20 PMsteep-account-67575
07/08/2021, 5:21 PMcy.window()
but the returned object still doesn't seem to have any of the globals exported by my bundle. I'm probably missing something obvious here but I just don't know what 😅wonderful-match-15836
07/09/2021, 2:49 PM+Cypress
is probably not a choice I'd have made, I'd probably make a helper to pass a selector and return the number if I needed that.