Skip to content

Commit 25e772c

Browse files
DavertMikclaude
andcommitted
test(dry-run): allow other plugins alongside the explicit -p one
The new dry-run no longer disables every plugin (only the interactive and external-I/O ones), so the customLocator test now sees `Plugins: screenshot, customLocator` and the strict `toContain('Plugins: customLocator')` assertion fails. Match the plugin list with a regex instead — what we care about is that customLocator was activated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7285763 commit 25e772c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/runner/dry_run_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe('dry-run command', () => {
188188

189189
it('should enable a particular plugin in dry-mode when passing it to -p', done => {
190190
exec(`${codecept_run_config('codecept.customLocator.js')} --verbose -p customLocator`, (err, stdout) => {
191-
expect(stdout).toContain('Plugins: customLocator')
191+
expect(stdout).toMatch(/Plugins:[^\n]*customLocator/)
192192
expect(stdout).toContain("I see element {xpath: .//*[@data-testid='COURSE']//a}")
193193
expect(stdout).toContain('OK | 1 passed')
194194
expect(stdout).toContain('--- DRY MODE: No tests were executed ---')

0 commit comments

Comments
 (0)