fancy-airplane-60156
10/02/2021, 5:54 AMthankful-lunch-80439
10/02/2021, 5:39 PMeager-insurance-88633
10/04/2021, 12:30 AMexport const hoverAndClickHiddenButtonByText =
(buttonText: string) => (subject) => {
cy.wrap(subject).trigger("mouseover").contains(buttonText).click();
};
seems to be something like (this: any, currentSubject: JQuery) => voidgentle-oxygen-2271
10/04/2021, 6:33 AMgentle-oxygen-2271
10/04/2021, 6:39 AMcold-nail-44506
10/04/2021, 3:42 PMprehistoric-action-94870
10/05/2021, 5:12 PM<address>
"Address Line 1
<br>
"Address Line 2"
<br>
"Country"
<br>
"Postcode"
<br>
</address>
I have the address information in a .json file stored like this:
{
"officeName": "Office 1",
"officeAddress":"Address Line 1 Address Line 2 Country Postcode",
}
In my test spec.js file:
//Check the office address
cy.get('.office-finder-search-results .address:nth-of-type(1)').children('address')
.invoke('text')
.then((addressText) => addressText.trim())
.should('contain', officeDetails.english.offices[22].officeAddress)
The assertion is happening but its failing as there is no spacing at the end of each line after the .trim()
operation. I can't post the assertion failure due to confidentiality, but the message is similar to the below:
assert (fail)
expected **Address Line 1Address Line 2CountryPostcode** to include **Address Line 1 Address Line 2 Country Postcode**
Is there a way I can manipulate the string to have a space character at the end of each line so it matches up to the values in my .json file? Thanks in advancealert-photographer-39416
10/08/2021, 2:15 AMalert-photographer-39416
10/08/2021, 2:16 AMalert-photographer-39416
10/08/2021, 2:16 AMalert-photographer-39416
10/08/2021, 2:16 AMbitter-fountain-36713
10/08/2021, 4:46 AMstale-scientist-4874
10/08/2021, 10:28 AMnarrow-optician-44716
10/08/2021, 5:02 PMgray-kilobyte-89541
10/12/2021, 11:36 AMbest-yacht-92435
10/14/2021, 1:48 PMmagnificent-rose-67179
10/15/2021, 8:01 AMmagnificent-rose-67179
10/15/2021, 8:02 AMmagnificent-rose-67179
10/15/2021, 8:02 AMmagnificent-rose-67179
10/15/2021, 8:04 AM[3190:1014/180252.550565:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3190:1014/180252.550639:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3361:1014/180252.571643:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swiftshader
magnificent-rose-67179
10/15/2021, 8:04 AMmagnificent-rose-67179
10/15/2021, 8:09 AMmagnificent-rose-67179
10/15/2021, 8:09 AM<--- Last few GCs --->
[3635:0x25f2003c0000] 294197 ms: Mark-sweep 1991.6 (2069.4) -> 1986.0 (2071.7) MB, 4597.5 / 0.1 ms (average mu = 0.070, current mu = 0.007) allocation failure scavenge might not succeed
[3635:0x25f2003c0000] 301438 ms: Mark-sweep 1994.0 (2071.9) -> 1988.5 (2074.4) MB, 7206.3 / 0.0 ms (average mu = 0.031, current mu = 0.005) allocation failure scavenge might not succeed
<--- JS stacktrace --->
magnificent-rose-67179
10/15/2021, 8:10 AMcrooked-answer-55549
10/15/2021, 1:31 PM$apollo.addSmartQuery
from inside a component to perform queries but it looks like the $apollo
object doesn't exist inside the Cypress instance. I have a feeling Im missing something fundamental.crooked-answer-55549
10/15/2021, 3:32 PMthis.$apollo
as a DollarApollo
object but it is there. ๐คuser
10/17/2021, 11:06 PMstocky-tomato-26046
10/18/2021, 10:49 AMmagnificent-beard-2043
10/19/2021, 2:11 PMcypress-grep
tool in CI pipeline together with cypress-io/github-action@v2
?
In order to reduce the runtime, I run a grep on the spec-files first and store the result as a comma separated string to a varaible, and then pass that variable into the spec
flag in the with
-block.
Are there any way to pass the grepTags
command in the with-block in cypress-io/github-action@v2
to limit only the tagged tests? ๐ค
Now I have this block where I'd like to add the grep-command
- name: Running Cypress ๐ฌ tests
uses: cypress-io/github-action@v2
with:
record: true
browser: chrome
headless: true
spec: ${{ env.SPECFILES_FOR_SMOKE_TEST }}
Any clues out there?magnificent-rose-67179
10/20/2021, 7:20 AM