Skip to content

Commit

Permalink
E2E Tests: add area tags (#5666)
Browse files Browse the repository at this point in the history
Just adding tags regarding areas to tests.

### QA Notes

All tests should pass.
  • Loading branch information
testlabauto authored Dec 9, 2024
1 parent a78871c commit 500c0b5
Show file tree
Hide file tree
Showing 46 changed files with 54 additions and 57 deletions.
2 changes: 1 addition & 1 deletion test/e2e/features/apps/python-apps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('Python Applications', { tag: ['@pr'] }, () => {
test.describe('Python Applications', { tag: ['@pr', '@apps', '@viewer', '@editor'] }, () => {
test.afterEach(async function ({ app }) {
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');

Expand Down
3 changes: 1 addition & 2 deletions test/e2e/features/apps/shiny.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('Shiny Application', {
}, () => {
test.describe('Shiny Application', { tag: ['@apps', '@viewer'] }, () => {
test.beforeAll(async function ({ app }) {
try {
await app.workbench.extensions.installExtension('posit.shiny', true);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/connections/connections-db.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('SQLite DB Connection', { tag: ['@web', '@win', '@pr'] }, () => {
test.describe('SQLite DB Connection', { tag: ['@web', '@win', '@pr', '@connections'] }, () => {
test.beforeAll(async function ({ userSettings }) {
await userSettings.set([['positron.connections.showConnectionPane', 'true']], true);
});
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-ansi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('Console ANSI styling', { tag: ['@pr'] }, () => {
test.describe('Console ANSI styling', { tag: ['@pr', '@console'] }, () => {
test.beforeEach(async function ({ app }) {
await app.workbench.positronLayouts.enterLayout('fullSizedPanel');
});
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-autocomplete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Console Autocomplete', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@console']
}, () => {
test('Python - Verify Console Autocomplete [C947968]', async function ({ app, python }) {
await app.workbench.positronConsole.pasteCodeToConsole('import pandas as pd');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-clipboard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
suiteId: __filename
});

test.describe('Console - Clipboard', () => {
test.describe('Console - Clipboard', { tag: ['@console'] }, () => {
test('Python - Copy from console & paste to console [C608100]', async function ({ app, python }) {
await testBody(app);
});
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-history.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
});

test.describe('Console History', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@console']
}, () => {
test.afterEach(async function ({ app }) {
app.workbench.positronConsole.sendKeyboardKey('Escape');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
});

test.describe('Console Input', {
tag: ['@web', '@pr', '@win']
tag: ['@web', '@pr', '@win', '@console']
}, () => {

test.describe('Console Input - Python', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.use({
suiteId: __filename
});

test.describe('Console Output', { tag: ['@win'] }, () => {
test.describe('Console Output', { tag: ['@win', '@console'] }, () => {
test('R - Console output in a loop with short pauses [C885225]', async function ({ app, r }) {
await app.workbench.positronConsole.pasteCodeToConsole(rCode);
await app.workbench.positronConsole.sendEnterKey();
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-python.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.use({
suiteId: __filename
});

test.describe('Console Pane: Python', { tag: ['@web', '@win'] }, () => {
test.describe('Console Pane: Python', { tag: ['@web', '@win', '@console'] }, () => {

test('Verify restart button inside the console [C377918]', async function ({ app, python }) {
await expect(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/console/console-r.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
});

test.describe('Console Pane: R', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@console']
}, () => {
test.beforeAll(async function ({ app }) {
// Need to make console bigger to see all bar buttons
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/100x100-pandas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
suiteId: __filename
});

test('Data Explorer 100x100 - Python - Pandas [C557563]', { tag: ['@win'] }, async function ({ app, python }) {
test('Data Explorer 100x100 - Python - Pandas [C557563]', { tag: ['@win', '@data-explorer'] }, async function ({ app, python }) {
test.slow();

const dataFrameName = 'pandas100x100';
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/100x100-polars.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
suiteId: __filename
});

test('Data Explorer 100x100 - Python - Polars [C674520]', { tag: ['@win'] }, async function ({ app, python }) {
test('Data Explorer 100x100 - Python - Polars [C674520]', { tag: ['@win', '@data-explorer'] }, async function ({ app, python }) {
test.slow();

const dataFrameName = 'polars100x100';
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/100x100-r.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
suiteId: __filename
});

test('Data Explorer 100x100 - R [C674521]', { tag: ['@win'] }, async function ({ app, r }) {
test('Data Explorer 100x100 - R [C674521]', { tag: ['@win', '@data-explorer'] }, async function ({ app, r }) {
test.slow();

// Test the data explorer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test.use({
});

test.describe('Headless Data Explorer - Large Data Frame', {
tag: ['@web']
tag: ['@web', '@data-explorer', '@duck-db']
}, () => {
// python fixture not actually needed but serves as a long wait so that we can be sure
// headless/duckdb open will work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Data Explorer - Python Pandas', {
tag: ['@web', '@win', '@pr']
tag: ['@web', '@win', '@pr', '@data-explorer']
}, () => {
test('Python Pandas - Verifies basic data explorer functionality [C557556]', async function ({ app, python, logger }) {
// modified snippet from https://www.geeksforgeeks.org/python-pandas-dataframe/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Data Explorer - Python Polars', {
tag: ['@win', '@web', '@pr']
tag: ['@win', '@web', '@pr', '@data-explorer']
}, () => {
test('Python Polars - Verifies basic data explorer functionality [C644538]', async function ({ app, python, logger }) {
await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'polars-dataframe-py', 'polars_basic.py'));
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/data-explorer-r.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
});

test.describe('Data Explorer - R ', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@data-explorer']
}, () => {
test('R - Verifies basic data explorer functionality [C609620]', { tag: ['@pr'] }, async function ({ app, r, logger }) {
// snippet from https://www.w3schools.com/r/r_data_frames.asp
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/duckdb-sparklines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Data Explorer - DuckDB Column Summary', {
tag: ['@web', '@win', '@pr']
tag: ['@web', '@win', '@pr', '@data-explorer', '@duck-db']
}, () => {
// python fixture not actually needed but serves as a long wait so that we can be sure
// headless/duckdb open will work
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/large-data-frame.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test.use({
});

test.describe('Data Explorer - Large Data Frame', {
tag: ['@pr', '@web', '@win']
tag: ['@pr', '@web', '@win', '@data-explorer']
}, () => {
test.beforeEach(async function ({ app }) {
await app.workbench.positronLayouts.enterLayout('stacked');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/sparklines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Data Explorer - Sparklines', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@data-explorer']
}, () => {

test.beforeEach(async function ({ app }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const objectKey = "largeParquet.parquet";

const githubActions = process.env.GITHUB_ACTIONS === "true";

test.describe('Data Explorer - Very Large Data Frame', { tag: ['@win'] }, () => {
test.describe('Data Explorer - Very Large Data Frame', { tag: ['@win', '@data-explorer'] }, () => {
test.beforeAll(async function ({ app }) {
if (githubActions) {
const localFilePath = join(app.workspacePathOrFolder, "data-files", objectKey);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/data-explorer/xlsx-data-frame.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Data Explorer - XLSX', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@data-explorer']
}, () => {

test.afterEach(async function ({ app }) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/editor/fast-execution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test.use({

const FILENAME = 'fast-execution.r';

test.describe('R Fast Execution', { tag: ['@web'] }, () => {
test.describe('R Fast Execution', { tag: ['@web', '@editor'] }, () => {
test('Verify fast execution is not out of order [C712539]', async function ({ app, r }) {
await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'fast-statement-execution', FILENAME));

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/help/f1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test.use({


test.describe('F1 Help #web #win', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@help']
}, () => {

test('R - Verifies basic F1 help functionality [C1018854]', async function ({ app, r }) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/help/help.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.use({
suiteId: __filename
});

test.describe('Help', () => {
test.describe('Help', { tag: ['@help'] }, () => {

test('Python - Verifies basic help functionality [C633814]', async function ({ app, python }) {
await app.workbench.positronConsole.executeCode('Python', `?load`, '>>>');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/layouts/layouts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.use({
suiteId: __filename
});

test.describe('Layouts', { tag: ['@web'] }, () => {
test.describe('Layouts', { tag: ['@web', '@layouts'] }, () => {

test.describe('Stacked Layout', () => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.beforeEach(async function ({ app }) {
await app.workbench.positronConsole.waitForReadyOrNoInterpreter();
});

test.describe('Python - New Project Wizard', () => {
test.describe('Python - New Project Wizard', { tag: ['@new-project-wizard'] }, () => {
const defaultProjectName = 'my-python-project';

test('Create a new Conda environment [C628628]', async function ({ app, page }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test.beforeEach(async function ({ app }) {
await app.workbench.positronLayouts.enterLayout("stacked");
});

test.describe('R - New Project Wizard', () => {
test.describe('R - New Project Wizard', { tag: ['@new-project-wizard'] }, () => {
test.describe.configure({ mode: 'serial' });

const defaultProjectName = 'my-r-project';
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/notebook/notebook-create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.use({
suiteId: __filename
});

test.describe('Notebooks', { tag: ['@pr', '@web', '@win'] }, () => {
test.describe('Notebooks', { tag: ['@pr', '@web', '@win', '@notebook'] }, () => {
test.describe('Python Notebooks', () => {
test.beforeEach(async function ({ app, python }) {
await app.workbench.positronLayouts.enterLayout('notebook');
Expand Down
4 changes: 1 addition & 3 deletions test/e2e/features/notebook/notebook-large-python.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ test.use({
});

// Note that this test is too heavy to pass on web and windows
test.describe('Large Python Notebook', {
annotation: [{ type: 'issue', description: 'This test is too heavy to run in CICD due to snapshots on the excessive scrolling.' }],
}, () => {
test.describe('Large Python Notebook', { tag: ['@notebook'] }, () => {

test('Python - Large notebook execution [C983592]', async function ({ app, python }) {
test.setTimeout(480_000); // huge timeout because this is a heavy test
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/outline/outline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Outline #web #win', {
tag: ['@web', '@win']
tag: ['@web', '@win', '@outline']
}, () => {

test('Python - Verify Outline Contents [C956870]', async function ({ app, python }) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/output/console-ouput-log.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.use({
suiteId: __filename
});

test.describe('Console Output Log', { tag: ['@web'] }, () => {
test.describe('Console Output Log', { tag: ['@web', '@output', '@console'] }, () => {
test.beforeEach(async function ({ app }) {
await app.workbench.positronLayouts.enterLayout('stacked');
});
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/plots/plots.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test.use({
suiteId: __filename
});

test.describe('Plots', () => {
test.describe('Plots', { tag: ['@plots', '@editor'] }, () => {
// Some tests are not tagged @win because they woould require a new master image.
test.describe('Python Plots', () => {

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/quarto/quarto.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.use({
suiteId: __filename
});

test.describe('Quarto', { tag: ['@web'] }, () => {
test.describe('Quarto', { tag: ['@web', '@quarto'] }, () => {
test.beforeAll(async function ({ app, browserName }) {
await app.workbench.quickaccess.openFile(path.join(app.workspacePathOrFolder, 'workspaces', 'quarto_basic', 'quarto_basic.qmd'));
isWeb = browserName === 'chromium';
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/r-markdown/r-markdown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('R Markdown', { tag: ['@web'] }, () => {
test.describe('R Markdown', { tag: ['@web', '@r-markdown'] }, () => {
test('Render R Markdown [C680618]', async function ({ app, r }) {
await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'basic-rmd-file', 'basicRmd.rmd'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('R Package Development', { tag: ['@web'] }, () => {
test.describe('R Package Development', { tag: ['@web', '@r-pkg-development'] }, () => {
test.beforeAll(async function ({ app, r, userSettings }) {
try {
// don't use native file picker
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/reticulate/reticulate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.use({
// to the installed python path

test.describe('Reticulate', {
tag: ['@web'],
tag: ['@web', '@reticulate'],
annotation: [{ type: 'issue', description: 'https://github.com/posit-dev/positron/issues/5226' }]
}, () => {
test.beforeAll(async function ({ app, userSettings }) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/features/test-explorer/test-explorer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.use({
suiteId: __filename
});

test.describe('Test Explorer', () => {
test.describe('Test Explorer', { tag: ['@test-explorer'] }, () => {
test.beforeAll(async function ({ app, r, userSettings }) {
try {
// don't use native file picker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.use({
suiteId: __filename
});

test.describe.skip('Interpreter Dropdown in Top Action Bar', { tag: ['@web'] }, () => {
test.describe.skip('Interpreter Dropdown in Top Action Bar', { tag: ['@web', '@top-action-bar'] }, () => {
let interpreterDropdown: PositronInterpreterDropdown;
let positronConsole: PositronConsole;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use({
});

test.describe('Top Action Bar - Save Actions', {
tag: ['@web']
tag: ['@web', '@top-action-bar']
}, () => {

test.beforeAll(async function ({ app, userSettings }) {
Expand Down
Loading

0 comments on commit 500c0b5

Please sign in to comment.