diff --git a/UITests/FindInPageTests.swift b/UITests/FindInPageTests.swift index e50d2bdfb4..d15abad731 100644 --- a/UITests/FindInPageTests.swift +++ b/UITests/FindInPageTests.swift @@ -450,7 +450,7 @@ private extension FindInPageTests { let loremIpsumData = Data(loremIpsumHTML.utf8) do { - try loremIpsumData.write(to: loremIpsumFileURL, options: [.noFileProtection ]) + try loremIpsumData.write(to: loremIpsumFileURL, options: [.atomic, .noFileProtection ]) } catch { XCTFail("It wasn't possible to write out the required local HTML file for the tests: \(error.localizedDescription)") }