Skip to content

Commit 4b012b7

Browse files
committed
fix: UTs
1 parent 9d5aca5 commit 4b012b7

File tree

2 files changed

+0
-73
lines changed

2 files changed

+0
-73
lines changed

test/acceptance/codecept.Playwright.retryTo.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/plugin/plugin_test.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,6 @@ describe('CodeceptJS plugin', function () {
1414
process.chdir(codecept_dir)
1515
})
1616

17-
it('should retry the await/non await steps', done => {
18-
exec(`${config_run_config('codecept.Playwright.retryTo.js', '@plugin')} --verbose`, (err, stdout) => {
19-
const lines = stdout.split('\n')
20-
expect(lines).toEqual(expect.arrayContaining([expect.stringContaining('... Retrying')]))
21-
expect(err).toBeFalsy()
22-
done()
23-
})
24-
})
25-
26-
it('should failed before the retryTo instruction', done => {
27-
exec(`${config_run_config('codecept.Playwright.retryTo.js', 'Should be succeed')} --verbose`, (err, stdout) => {
28-
expect(stdout).toContain('locator.waitFor: Timeout 1000ms exceeded.')
29-
expect(stdout).toContain('[1] Error | Error: element (.nothing) still not visible after 1 sec')
30-
expect(err).toBeTruthy()
31-
done()
32-
})
33-
})
34-
3517
it('should generate the coverage report', done => {
3618
exec(`${config_run_config('codecept.Playwright.coverage.js', '@coverage')} --debug`, (err, stdout) => {
3719
const lines = stdout.split('\n')
@@ -40,13 +22,4 @@ describe('CodeceptJS plugin', function () {
4022
done()
4123
})
4224
})
43-
44-
it('should retry to failure', done => {
45-
exec(`${config_run_config('codecept.Playwright.retryTo.js', 'Should fail after reached max retries')} --verbose`, (err, stdout) => {
46-
const lines = stdout.split('\n')
47-
expect(lines).toEqual(expect.arrayContaining([expect.stringContaining('Custom pluginRetryTo Error')]))
48-
expect(err).toBeTruthy()
49-
done()
50-
})
51-
})
5225
})

0 commit comments

Comments
 (0)