Skip to content

Commit dadc320

Browse files
committed
fixed failing test
1 parent 7fd68a5 commit dadc320

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

__tests__/web.spec.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,16 @@ test.describe('Testing screenplay-playwright-js web module', () => {
549549
expect(notEnabledRes).toBeTruthy();
550550
});
551551

552-
const DOWNLOAD_FILENAME = 'newFile.txt';
553-
const DOWNLOAD_FILECONTENT = 'First file ';
552+
// the download page contents change a lot
553+
// thus keeping a few options in place
554+
const DOWNLOAD_FILENAME = 'Hi.txt';
555+
const DOWNLOAD_FILECONTENT = '';
556+
// or
557+
// const DOWNLOAD_FILENAME = 'test-file.txt';
558+
// const DOWNLOAD_FILECONTENT = 'Test file';
559+
// or
560+
// const DOWNLOAD_FILENAME = 'newFile.txt';
561+
// const DOWNLOAD_FILECONTENT = 'First file ';
554562

555563
test('Download File', async ({ actor }) => {
556564
const res = await actor.attemptsTo(

0 commit comments

Comments
 (0)