Skip to content

Commit 4fe4b95

Browse files
authored
E2E test: ark tag addition (#8331)
New tag for use when bumping ARK version ### QA Notes @:ark @:web @:win
1 parent 5f6eab9 commit 4fe4b95

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+137
-61
lines changed

test/e2e/infra/test-runner/test-tags.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export enum TestTags {
2020
// feature tags
2121
ACCESSIBILITY = '@:accessibility',
2222
APPS = '@:apps',
23+
ARK = '@:ark',
2324
ASSISTANT = '@:assistant',
2425
CONNECTIONS = '@:connections',
2526
CONSOLE = '@:console',

test/e2e/tests/autocomplete/autocomplete.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ test.describe('Autocomplete', {
8888
await console.expectSuggestionListToContain('abspath, def abspath(path)');
8989
});
9090

91-
test('R - Verify autocomplete suggestions in Console and Editor', async function ({ app, runCommand, sessions }) {
91+
test('R - Verify autocomplete suggestions in Console and Editor', {
92+
tag: [tags.ARK]
93+
}, async function ({ app, runCommand, sessions }) {
9294
const { variables, editors, console } = app.workbench;
9395

9496
const [rSession1, rSession2, rSessionAlt] = await sessions.start(['r', 'r', 'rAlt']);
@@ -125,7 +127,9 @@ test.describe('Autocomplete', {
125127
await editors.expectSuggestionListCount(0);
126128
});
127129

128-
test('R - Verify autocomplete suggestions (LSP is alive) after restart', async function ({ app, sessions }) {
130+
test('R - Verify autocomplete suggestions (LSP is alive) after restart', {
131+
tag: [tags.ARK]
132+
}, async function ({ app, sessions }) {
129133
const { variables, console } = app.workbench;
130134

131135
const [rSession, rSessionAlt] = await sessions.start(['r', 'rAlt']);

test/e2e/tests/code-actions/r.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test.use({
1212
suiteId: __filename
1313
});
1414

15-
test.describe('R Code Actions', { tag: [tags.EDITOR, tags.WIN, tags.WEB] }, () => {
15+
test.describe('R Code Actions', { tag: [tags.EDITOR, tags.WIN, tags.WEB, tags.ARK] }, () => {
1616

1717
test.afterEach(async function ({ app, hotKeys, cleanup }) {
1818
await hotKeys.closeAllEditors();

test/e2e/tests/connections/connections-postgres.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ test.describe('Postgres DB Connection', {
8181
});
8282
});
8383

84-
test('R - Can establish a Postgres connection to a docker container', async function ({ app, r }) {
84+
test('R - Can establish a Postgres connection to a docker container', {
85+
tag: [tags.ARK]
86+
}, async function ({ app, r }) {
8587

8688
await app.workbench.connections.openConnectionPane();
8789

test/e2e/tests/connections/connections-sqlite.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ test.describe('SQLite DB Connection', {
5757
});
5858
});
5959

60-
test('R - Can establish a SQLite connection, disconnect & reconnect', async function ({ app, r }) {
60+
test('R - Can establish a SQLite connection, disconnect & reconnect', {
61+
tag: [tags.ARK]
62+
}, async function ({ app, r }) {
6163
await test.step('Open an R file and run it', async () => {
6264
await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'chinook-db-r', 'chinook-sqlite.r'));
6365
await app.workbench.quickaccess.runCommand('r.sourceCurrentFile');
@@ -84,7 +86,9 @@ test.describe('SQLite DB Connection', {
8486

8587
});
8688

87-
test('R - Ensure SQLite connections are updated after adding a database', async function ({ app, page, r }) {
89+
test('R - Ensure SQLite connections are updated after adding a database', {
90+
tag: [tags.ARK]
91+
}, async function ({ app, page, r }) {
8892
await test.step('Open an empty connection', async () => {
8993
await app.workbench.console.executeCode(
9094
'R',

test/e2e/tests/console/console-add.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ test.describe('Console: Add +', {
1414
tag: [tags.SESSIONS, tags.CONSOLE, tags.WEB, tags.WIN]
1515
}, () => {
1616

17-
test('Validate can duplicate runtime via Console + button', async function ({ app, page }) {
17+
test('Validate can duplicate runtime via Console + button', {
18+
tag: [tags.ARK]
19+
}, async function ({ app, page }) {
1820
const { sessions, console } = app.workbench;
1921
await sessions.start(['r']);
2022

@@ -24,7 +26,9 @@ test.describe('Console: Add +', {
2426
await sessions.expectAllSessionsToBeReady();
2527
});
2628

27-
test('Validate can start a different runtime via Console + button', async function ({ app, page, contextMenu }) {
29+
test('Validate can start a different runtime via Console + button', {
30+
tag: [tags.ARK]
31+
}, async function ({ app, page, contextMenu }) {
2832
const { sessions, console } = app.workbench;
2933
await sessions.start(['r', 'r']);
3034

@@ -35,7 +39,9 @@ test.describe('Console: Add +', {
3539
await sessions.expectAllSessionsToBeReady();
3640
});
3741

38-
test('Validate Console + button menu shows both active and disconnected sessions', async function ({ app, contextMenu }) {
42+
test('Validate Console + button menu shows both active and disconnected sessions', {
43+
tag: [tags.ARK]
44+
}, async function ({ app, contextMenu }) {
3945
const { sessions, console } = app.workbench;
4046
const [pythonSession, rSession] = await sessions.start(['python', 'r', 'r', 'r', 'r', 'r', 'r',]);
4147

test/e2e/tests/console/console-ansi.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ test.describe('Console ANSI styling', { tag: [tags.CONSOLE, tags.WIN, tags.WEB]
1515
await app.workbench.layouts.enterLayout('fullSizedPanel');
1616
});
1717

18-
test("R - Can produce clickable file links", async function ({ app, r }) {
18+
test("R - Can produce clickable file links", {
19+
tag: [tags.ARK]
20+
}, async function ({ app, r }) {
1921
// Can be any file on the workspace. We use .gitignore as it's probably
2022
// always there.
2123
const fileName = '.gitignore';
@@ -35,7 +37,9 @@ test.describe('Console ANSI styling', { tag: [tags.CONSOLE, tags.WIN, tags.WEB]
3537
}).toPass({ timeout: 60000 });
3638
});
3739

38-
test("R - Can produce clickable help links", async function ({ app, r }) {
40+
test("R - Can produce clickable help links", {
41+
tag: [tags.ARK]
42+
}, async function ({ app, r }) {
3943
const inputCode = `cli::cli_inform("{.fun base::mean}")`;
4044

4145
await expect(async () => {
@@ -54,7 +58,9 @@ test.describe('Console ANSI styling', { tag: [tags.CONSOLE, tags.WIN, tags.WEB]
5458
}).toPass({ timeout: 60000 });
5559
});
5660

57-
test("R - Can produce colored output", async function ({ app, r }) {
61+
test("R - Can produce colored output", {
62+
tag: [tags.ARK]
63+
}, async function ({ app, r }) {
5864
const color = '#ff3333';
5965
const rgb_color = "rgb(255, 51, 51)"; // same as above but in rgb
6066

test/e2e/tests/console/console-clipboard.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ test.describe('Console - Clipboard', { tag: [tags.CONSOLE, tags.WIN, tags.WEB] }
2323
await testConsoleClipboardWithContextMenu(app, '>>>', /Python .+ restarted\./, (new URL(page.url())).port);
2424
});
2525

26-
test('R - Verify copy from console & paste to console ', async ({ app, r, page }) => {
26+
test('R - Verify copy from console & paste to console ', {
27+
tag: [tags.ARK]
28+
}, async ({ app, r, page }) => {
2729
await testConsoleClipboard(app, 'a <- 1', (new URL(page.url())).port);
2830
});
2931

3032
test('R - Verify copy from console & paste to console with context menu',
31-
{ tag: [tags.WEB_ONLY] },
33+
{ tag: [tags.WEB_ONLY, tags.ARK] },
3234
async ({ app, r, page }) => {
3335
await testConsoleClipboardWithContextMenu(app, '>', /R .+ restarted\./, (new URL(page.url())).port);
3436
});

test/e2e/tests/console/console-history.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ test.describe('Console History', {
3232
});
3333

3434

35-
test('R - Verify first history and full history', async function ({ app, page, r }) {
35+
test('R - Verify first history and full history', {
36+
tag: [tags.ARK]
37+
}, async function ({ app, page, r }) {
3638
const rLines = [
3739
'a <- 1',
3840
'b <- 2',

test/e2e/tests/console/console-input.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ test.describe('Console Input', {
3232
});
3333

3434

35-
test('R - Can get input string via console', async function ({ app, r }) {
35+
test('R - Can get input string via console', {
36+
tag: [tags.ARK]
37+
}, async function ({ app, r }) {
3638
const inputCode = `val <- readline(prompt = "Enter your name: ")
3739
cat(sprintf('Hello %s!\n', val))`;
3840
await app.workbench.console.pasteCodeToConsole(inputCode);
@@ -46,7 +48,9 @@ cat(sprintf('Hello %s!\n', val))`;
4648
await app.workbench.console.waitForConsoleContents('Hello John Doe!');
4749
});
4850

49-
test('R - Can use `menu` to select alternatives', async function ({ app, r }) {
51+
test('R - Can use `menu` to select alternatives', {
52+
tag: [tags.ARK]
53+
}, async function ({ app, r }) {
5054
const inputCode = `x <- menu(letters)`;
5155

5256
await app.workbench.console.pasteCodeToConsole(inputCode);
@@ -62,7 +66,9 @@ cat(sprintf('Hello %s!\n', val))`;
6266
await app.workbench.console.waitForConsoleContents('[1] 1');
6367
});
6468

65-
test("R - Verify ESC dismisses autocomplete without deleting typed text", async function ({ app, page, r }) {
69+
test("R - Verify ESC dismisses autocomplete without deleting typed text", {
70+
tag: [tags.ARK]
71+
}, async function ({ app, page, r }) {
6672
// This is a regression test for https://github.com/posit-dev/positron/issues/1161
6773

6874
const inputCode = `base::mea`;

0 commit comments

Comments
 (0)