Skip to content

Commit 1d03296

Browse files
committed
test: fix smoke for update settings
1 parent e688d07 commit 1d03296

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

e2e/tests/updateSettings.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { browser, expect } from '@wdio/globals'
2+
import { sleep } from 'wdio-vscode-service'
23

34
import {
45
STATUS,
@@ -34,7 +35,7 @@ describe('VS Code Extension Testing (Update config)', function () {
3435
await clearAllTestResults(workbench)
3536
})
3637

37-
it('should be resolved the defined tests after configuration changed', async function () {
38+
it('should be resolved the defined tests after settings changed', async function () {
3839
const testingSection = await getTestingSection(sideBarView.getContent())
3940
const items = await testingSection.getVisibleItems()
4041

@@ -75,8 +76,10 @@ describe('VS Code Extension Testing (Update config)', function () {
7576
await workbench.openSettings()
7677

7778
await testingVew.closeView()
78-
const setting2 = new ExtendSettingsEditor(workbench)
79-
const listSetting = await setting2.findListSetting('Config File Pattern', 'Webdriverio')
79+
await sleep(1500)
80+
81+
const settingEditor = new ExtendSettingsEditor(workbench)
82+
const listSetting = await settingEditor.findListSetting('Config File Pattern', 'Webdriverio')
8083
await listSetting.editValue(0, '**/webdriverio.conf.ts')
8184

8285
await workbench.getEditorView().closeAllEditors()

0 commit comments

Comments
 (0)