Skip to content

Commit

Permalink
test: add test to ensure project order (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored May 28, 2024
1 parent 5d0011e commit e095eb4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
},
"devDependencies": {
"@babel/preset-typescript": "^7.23.2",
"@playwright/test": "1.44.0-beta-1714435420000",
"@playwright/test": "^1.45.0-alpha-2024-05-23",
"@types/babel__core": "^7.20.3",
"@types/babel__helper-plugin-utils": "^7.10.2",
"@types/babel__traverse": "^7.20.3",
Expand Down
8 changes: 8 additions & 0 deletions tests/project-setup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ test.describe(() => {
expect(output).toContain('from-setup');
expect(output).toContain('from-test');
expect(output).toContain('from-teardown');

// Ensure the rendered order of the projects is correct.
const webView = vscode.webViews.get('pw.extension.settingsView')!;
await expect(webView.getByTestId('projects').locator('div').locator('label')).toHaveText([
'setup',
'test',
'teardown',
]);
});

test('should run setup and teardown projects (2)', async ({ activate }) => {
Expand Down

0 comments on commit e095eb4

Please sign in to comment.