Skip to content

Commit

Permalink
Merge pull request wordpress-mobile#21070 from wordpress-mobile/fix-u…
Browse files Browse the repository at this point in the history
…pdated-references

UI Test Fix - Properly update all renamed variables
  • Loading branch information
jostnes authored Jul 12, 2023
2 parents 1e74390 + ece876d commit 783bf46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WordPress/UITests/Tests/EditorGutenbergTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ class EditorGutenbergTests: XCTestCase {
try BlockEditorScreen()
.verifyUndoIsDisabled()
.verifyRedoIsDisabled()
.enterTextInTitle(text: title)
.addParagraphBlock(withText: content)
.verifyContentStructure(blocks: 1, words: content.components(separatedBy: " ").count, characters: content.count)
.enterTextInTitle(text: postTitle)
.addParagraphBlock(withText: postContent)
.verifyContentStructure(blocks: 1, words: postContent.components(separatedBy: " ").count, characters: postContent.count)
.undo()
.undo()
.verifyContentStructure(blocks: 0, words: 0, characters: 0)
.redo()
.redo()
.verifyContentStructure(blocks: 1, words: content.components(separatedBy: " ").count, characters: content.count)
.verifyContentStructure(blocks: 1, words: postContent.components(separatedBy: " ").count, characters: postContent.count)
}

func testAddRemoveFeaturedImage() throws {
Expand Down

0 comments on commit 783bf46

Please sign in to comment.