Skip to content

Latest commit

 

History

History
84 lines (50 loc) · 1.17 KB

File metadata and controls

84 lines (50 loc) · 1.17 KB
id FileSystem
title FileSystem

FileSystem

Extends Helper

Helper for testing filesystem. Can be easily used to check file structures:

I.amInPath('test');
I.seeFile('codecept.json');
I.seeInThisFile('FileSystem');
I.dontSeeInThisFile("WebDriverIO");

Methods

amInPath

Enters a directory In local filesystem. Starts from a current directory

Parameters

  • openPath

dontSeeFileContentsEqual

Checks that contents of file found by seeFile doesn't equal to text.

Parameters

  • text
  • encoding

dontSeeInThisFile

Checks that file found by seeFile doesn't include text.

Parameters

  • text
  • encoding

seeFile

Checks that file exists

Parameters

  • name

seeFileContentsEqual

Checks that contents of file found by seeFile equal to text.

Parameters

  • text
  • encoding

seeInThisFile

Checks that file found by seeFile includes a text.

Parameters

  • text
  • encoding

writeToFile

Writes test to file

Parameters

  • name
  • text