What I'm doing.
- I am creating a paragraph block/row
- Filling that row with random text
- Copying and pasting that row using the built-in
copy
andpaste
block feature - Then trying to assert the newly pasted row to check it matches the text in the first block of the text
Currently how I am asserting, but failing:
func confirmPastedParagraphBlock() -> BlockEditorScreen {
XCTAssert(pastedBlockView.isEqual(copiedBlockView))
return self
}
I am also using the following objects:
let copiedBlockView = XCUIApplication().otherElements["Paragraph Block. Row 1."]
let pastedBlockView = XCUIApplication().otherElements["Paragraph Block. Row 2."]
I know how I want to assert, but just not sure where I am going wrong - it fails at the confirmPastedParagraphBlock
step when it's called.