Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
EditorGutenbergTests - Unify undo/redo tests into one
  • Loading branch information
Gerardo committed Jul 6, 2023
commit 33717fb3409d8c700867a9d6371441dda11b14c6
13 changes: 1 addition & 12 deletions WordPress/UITests/Tests/EditorGutenbergTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,10 @@ class EditorGutenbergTests: XCTestCase {
.done()
}

func testTextPostUndo() throws {
func testUndoRedo() throws {

try BlockEditorScreen()
.verifyUndoIsDisabled()
.enterTextInTitle(text: title)
.addParagraphBlock(withText: content)
.verifyContentStructure(blocks: 1, words: content.components(separatedBy: " ").count, characters: content.count)
.undo()
.undo()
.verifyContentStructure(blocks: 0, words: 0, characters: 0)
}

func testTextPostRedo() throws {

try BlockEditorScreen()
.verifyRedoIsDisabled()
.enterTextInTitle(text: title)
.addParagraphBlock(withText: content)
Expand Down