most-thailand-89372
08/07/2021, 3:46 PMjs
cy.scrollTo('3px', '6px') // cy.scrollTo(3, 6)
cy.get('.document-position')
.should('have.text', 'Document scroll position is 3 & 6')
most-thailand-89372
08/07/2021, 3:51 PMAssertionError
Timed out retrying after 4000ms: expected '<div.document-position>' to have text 'Document scroll position is 3 & 6', but the text was **'Document scroll position is 1.6666780710220337 & 5.833373069763184'**
Please note the decimal numbers given instead of the actual 3px and 6px numbers scrolled to.
Is this a "feature" or a "bug" or an user error or Murphy's Law?? When I change from "Electron 89" to "FireFox 90" the issue goes away occasionally.
Any guidance would be most appreciated.user
08/09/2021, 10:14 AMuser
08/09/2021, 10:15 AM'@/pages/*': 'cypress/pages/*'
user
08/11/2021, 6:44 AMwooden-parrot-13301
08/12/2021, 6:03 PMcy.visit('/')
i get this:
Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '.../node_modules/punycode/punycode.js'
somebody has a clue for what is this?rough-nightfall-90576
08/12/2021, 7:43 PMambitious-photographer-75673
08/13/2021, 11:16 AMambitious-photographer-75673
08/13/2021, 11:17 AMambitious-photographer-75673
08/13/2021, 11:17 AMloud-policeman-30507
08/13/2021, 3:56 PMboundless-jackal-97384
08/16/2021, 1:39 PMmelodic-artist-46273
08/17/2021, 3:02 AMmelodic-artist-46273
08/17/2021, 3:09 AMjavascript
//Gets the ID of the second element that has an ID that ends with '-input'.
cy.get('[title]').eq(6).then(elem => {
let workflowID = elem.attr('title');
cy.wrap(workflowID).as('workflowID')
})
cy.get(':nth-child(2) > #column0 > .vasion-icon > .vasion-checkbox > .pointer').click()
cy.get('#home-inbox-actions-button').click()
cy.get('#first-list > li:nth-child(1)')
.contains('Approve')
cy.get('#first-list > li:nth-child(1)').click()
cy.get('#confirm-button > button > div > div')
.should('be.visible')
cy.get('#confirm-button > button > div > div').click()
cy.wait(5000)
//Check to make sure the previously assigned alias doesn't exist anymore. i.e. The id found above no longer is in the element found below.
cy.get('[title]').eq(6).then(elem => {
let nextWorkflowID = elem.attr('title');
cy.wrap(nextWorkflowID).as('nextWorkflowID')
})
cy.get('@workflowID')
cy.get('@nextWorkflowID')
})
melodic-artist-46273
08/17/2021, 3:10 AMmelodic-artist-46273
08/17/2021, 1:36 PMripe-plastic-20004
08/17/2021, 1:38 PMripe-plastic-20004
08/17/2021, 1:48 PMmelodic-artist-46273
08/17/2021, 2:15 PMjavascript
cy.get('[title]').eq(6).then(elem => {
let workflowID = elem.attr('title');
cy.wrap(workflowID).as('workflowID')
})
and
javascript
cy.get('[title]').eq(6).then(elem => {
let nextWorkflowID = elem.attr('title');
cy.wrap(nextWorkflowID).as('nextWorkflowID')
})
blocks with the
javascript
cy.get('[title]').eq(6).invoke('attr', 'title').as('workflowID')
and
javascript
cy.get('[title]').eq(6).invoke('attr', 'title').then(nextWorkflowID => {
expect(this.workflowID).not.equal(nextWorkflowID);
})
melodic-artist-46273
08/17/2021, 2:21 PMmelodic-artist-46273
08/17/2021, 2:32 PMripe-plastic-20004
08/17/2021, 2:37 PMmelodic-artist-46273
08/17/2021, 2:43 PMjavascript
cy.get('[title]').eq(6).invoke('attr', 'title').as('workflowID')
cy.get(':nth-child(2) > #column0 > .vasion-icon > .vasion-checkbox > .pointer').click()
cy.get('#home-inbox-actions-button').click()
cy.get('#first-list > li:nth-child(1)')
.contains('Approve')
cy.get('#first-list > li:nth-child(1)').click()
cy.get('#confirm-button > button > div > div')
.should('be.visible')
cy.get('#confirm-button > button > div > div').click()
cy.wait(5000)
//Check to make sure the previously assigned alias doesn't exist anymore. i.e. The id found above no longer is in the element found below.
cy.get('[title]').eq(6).invoke('attr', 'title').then(function (nextWorkflowID) {
expect(this.workflowID).not.equal(nextWorkflowID);
}
Throws an errormelodic-artist-46273
08/17/2021, 9:35 PMmelodic-artist-46273
08/17/2021, 9:35 PMmelodic-artist-46273
08/17/2021, 9:37 PMjavascript
cy.get('[title]').eq(6).then(elem => {
const txt = elem.text()
cy.get(':nth-child(2) > #column0 > .vasion-icon > .vasion-checkbox > .pointer').click()
cy.get('#home-inbox-actions-button').click()
cy.get('#first-list > li:nth-child(1)')
.contains('Approve')
cy.get('#first-list > li:nth-child(1)').click()
cy.get('#confirm-button > button > div > div')
.should('be.visible')
cy.get('#confirm-button > button > div > div').click()
cy.wait(5000)
cy.get('[title]').eq(6).should(elem2 => {
expect(elem2.text()).not.to.eq(txt)
})
ripe-plastic-20004
08/17/2021, 9:38 PMmelodic-artist-46273
08/17/2021, 9:38 PMmelodic-artist-46273
08/17/2021, 9:39 PMripe-plastic-20004
08/17/2021, 9:51 PM