Skip to content

Commit

Permalink
Remove unnecessary test now that we're using a constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
twstokes committed May 4, 2022
1 parent 8b0e649 commit d17c426
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions WordPress/WordPressTest/SiteCreation/SiteDesignTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,4 @@ class SiteDesignTests: XCTestCase {
let currentTitle = siteDesignPreviewVC.primaryActionButton.currentTitle
XCTAssertEqual(expectedPrimaryTitle, currentTitle)
}

/// Tests that the preview device on the Design view cannot be changed
func testSiteDesignPreviewDeviceIsAlwaysMobile() throws {

// given
let siteDesignVC = SiteDesignContentCollectionViewController(createsSite: false) { _ in }
let expectedDevice = PreviewDeviceSelectionViewController.PreviewDevice.mobile

// when
XCTAssertEqual(siteDesignVC.selectedPreviewDevice, expectedDevice)
siteDesignVC.selectedPreviewDevice = PreviewDeviceSelectionViewController.PreviewDevice.tablet

// then
XCTAssertEqual(siteDesignVC.selectedPreviewDevice, expectedDevice)
}
}

0 comments on commit d17c426

Please sign in to comment.