Sanity test updates (#294782)

This commit is contained in:
Dmitriy Vasyura
2026-02-12 01:36:23 -08:00
committed by GitHub
parent d233b14b71
commit e72a9f54d6
2 changed files with 23 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ parameters:
- name: buildCommit
displayName: Published Build Commit
type: string
default: ''
- name: npmRegistry
displayName: Custom NPM Registry URL
@@ -27,9 +28,17 @@ variables:
- name: Codeql.SkipTaskAutoInjection
value: true
- name: BUILD_COMMIT
value: ${{ parameters.buildCommit }}
${{ if ne(parameters.buildCommit, '') }}:
value: ${{ parameters.buildCommit }}
${{ else }}:
value: $(resources.pipeline.vscode.sourceCommit)
- name: BUILD_QUALITY
value: ${{ parameters.buildQuality }}
${{ if ne(parameters.buildCommit, '') }}:
value: ${{ parameters.buildQuality }}
${{ elseif startsWith(variables['Build.SourceBranch'], 'refs/heads/release/') }}:
value: stable
${{ else }}:
value: insider
- name: NPM_REGISTRY
value: ${{ parameters.npmRegistry }}
@@ -41,6 +50,17 @@ resources:
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
pipelines:
- pipeline: vscode
# allow-any-unicode-next-line
source: '⭐️ VS Code'
trigger:
stages:
- Publish
branches:
include:
- main
- release/*
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines

View File

@@ -125,7 +125,7 @@ export class UITest {
this.context.log('Typing extension name to search for');
await page.getByText('Search Extensions in Marketplace').focus();
await page.keyboard.type('GitHub Pull Requests');
await page.keyboard.insertText('GitHub Pull Requests');
this.context.log('Clicking Install on the first extension in the list');
await page.locator('.extension-list-item').getByText(/^GitHub Pull Requests$/).waitFor();