busy-vegetable-18177
06/04/2022, 11:56 AMripe-action-59156
06/04/2022, 11:56 AMbusy-vegetable-18177
06/04/2022, 12:18 PMadventurous-branch-4501
06/04/2022, 3:47 PMadventurous-branch-4501
06/04/2022, 3:48 PMbusy-vegetable-18177
06/04/2022, 3:55 PMnpm install
again without sudoadventurous-branch-4501
06/04/2022, 4:01 PMpurple-kilobyte-85592
06/04/2022, 4:13 PMbusy-vegetable-18177
06/04/2022, 4:13 PMbusy-vegetable-18177
06/04/2022, 9:01 PMwonderful-match-15836
06/04/2022, 9:10 PMflaky-airport-12178
06/05/2022, 9:24 AMflaky-airport-12178
06/05/2022, 9:24 AMgray-kilobyte-89541
06/05/2022, 12:05 PMmost-night-19949
06/06/2022, 7:33 AMgreen-book-63455
06/06/2022, 8:46 AMbrave-processor-66066
06/06/2022, 9:09 AMrhythmic-journalist-51620
06/06/2022, 2:45 PMbusy-vegetable-18177
06/06/2022, 5:00 PMhundreds-action-33616
06/06/2022, 10:21 PM.embeddedServiceHelpButton
before triggering the function _allowSupportChat
. In the browser, it always happens. But in Cypress .embeddedServiceHelpButton
is not always there when _allowSupportChat
is triggered. So it gives the console error and warnings about modified window functions. This is the function:
private _allowSupportChat = (): void => {
const supportChat = document.querySelector(".embeddedServiceHelpButton");
(supportChat as any).style.display = "flex";
}
Unfortunately, I can not provide an example. But maybe you have any ideas about how I can wait for the .embeddedServiceHelpButton
to be loaded before _allowSupportChat
function is triggered?gray-kilobyte-89541
06/06/2022, 10:42 PMcy.visit('/'); cy.get('.embeddedServiceHelpButton')
which ensures the element is there before proceedinggreen-translator-24136
06/07/2022, 7:17 AMgreen-translator-24136
06/07/2022, 8:25 AMmammoth-fish-55706
06/07/2022, 8:38 AM<button class="foo" title="a_long_name"><button>
i like to assert the length of the title attribute (so that the text of the title is of a certain length)
thanks š
I have found cy.get('button.foo').should('have.attr', 'title', 'a_long_name')
, but would like to verify the length and not the string itselffresh-doctor-14925
06/07/2022, 9:04 AMmammoth-fish-55706
06/07/2022, 9:12 AMmammoth-fish-55706
06/07/2022, 9:12 AMa_long_name
= 11 would becold-accountant-75560
06/07/2022, 9:25 AMfresh-doctor-14925
06/07/2022, 9:33 AMcy.get('button.foo')
.invoke('text')
.should('have.length', 11)
That's from memory; haven't tried it before typing it out. Let me know if it doesn't worknumerous-musician-23918
06/07/2022, 9:40 AM