icy-alarm-88737
11/03/2022, 1:34 AMicy-alarm-88737
11/03/2022, 1:34 AMadorable-smartphone-87280
11/03/2022, 1:34 AMadorable-smartphone-87280
11/03/2022, 1:35 AMicy-alarm-88737
11/03/2022, 1:36 AMadorable-smartphone-87280
11/03/2022, 1:36 AMcy.contains
with a selector included should be interpreted as a cy.get().contains()
chain under the hood.icy-alarm-88737
11/03/2022, 1:37 AMcy.get().contains()
chain works as expected tomorrow and post a github issue accordinglyicy-alarm-88737
11/03/2022, 1:38 AMicy-alarm-88737
11/03/2022, 1:38 AMadorable-smartphone-87280
11/03/2022, 1:38 AMadorable-smartphone-87280
11/03/2022, 1:38 AMgentle-dress-1046
11/03/2022, 7:55 AMcy.get(selector).find(selector)
to get elements, now sometimes I executes some assertions such as cy.get(selector).find(selector).should("have.length, 0")
or .should("not.exists")
but its like .find
does not act like .get
in terms of what it yields, which causes code like this cy.get(selector).find(selector).should("have.length, 0")
to fail because he couldn't find any elementeager-breakfast-44562
11/03/2022, 8:37 AMgentle-dress-1046
11/03/2022, 9:20 AMeager-breakfast-44562
11/03/2022, 9:28 AMeager-breakfast-44562
11/03/2022, 9:28 AMgentle-dress-1046
11/03/2022, 9:45 AMgentle-dress-1046
11/03/2022, 9:45 AMcy.visit
commandgentle-dress-1046
11/03/2022, 9:47 AMgentle-dress-1046
11/03/2022, 9:51 AMmouse.exports
eager-breakfast-44562
11/03/2022, 9:56 AMgentle-dress-1046
11/03/2022, 10:21 AMmodule.exports
you can add code like this in the file:
module.exports = {
getWord
}
also you are not importing correctly, you should use import {getWord} from "/Hangman"
gentle-dress-1046
11/03/2022, 10:22 AMcreamy-fish-66612
11/03/2022, 11:19 AMcreamy-fish-66612
11/03/2022, 11:21 AMpowerful-receptionist-26165
11/03/2022, 12:17 PMpowerful-receptionist-26165
11/03/2022, 12:18 PMflaky-tailor-940
11/03/2022, 1:24 PMelegant-pencil-72411
11/03/2022, 1:27 PMagreeable-doctor-59104
11/03/2022, 2:29 PM