Skip to content

Commit 68210c4

Browse files
committed
More quotas e2e tests
1 parent bb4001b commit 68210c4

5 files changed

Lines changed: 681 additions & 73 deletions

File tree

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"cookies": [
3+
{
4+
"name": "_hp2_ses_props.328327039",
5+
"value": "%7B%22z%22%3A0%2C%22ts%22%3A1769451870476%2C%22d%22%3A%22localhost%22%2C%22h%22%3A%22%2Flogin%22%2C%22t%22%3A%22Redpanda%20Console%22%7D",
6+
"domain": "localhost",
7+
"path": "/",
8+
"expires": 1769453672,
9+
"httpOnly": false,
10+
"secure": false,
11+
"sameSite": "Lax"
12+
},
13+
{
14+
"name": "__hstc",
15+
"value": "181257784.d7504f1881ce269df359f59576f859d7.1769451871006.1769451871006.1769451871006.1",
16+
"domain": "localhost",
17+
"path": "/",
18+
"expires": 1785003871,
19+
"httpOnly": false,
20+
"secure": false,
21+
"sameSite": "Lax"
22+
},
23+
{
24+
"name": "hubspotutk",
25+
"value": "d7504f1881ce269df359f59576f859d7",
26+
"domain": "localhost",
27+
"path": "/",
28+
"expires": 1785003871,
29+
"httpOnly": false,
30+
"secure": false,
31+
"sameSite": "Lax"
32+
},
33+
{
34+
"name": "__hssrc",
35+
"value": "1",
36+
"domain": "localhost",
37+
"path": "/",
38+
"expires": -1,
39+
"httpOnly": false,
40+
"secure": false,
41+
"sameSite": "Lax"
42+
},
43+
{
44+
"name": "__hssc",
45+
"value": "181257784.1.1769451871006",
46+
"domain": "localhost",
47+
"path": "/",
48+
"expires": 1769453671,
49+
"httpOnly": false,
50+
"secure": false,
51+
"sameSite": "Lax"
52+
},
53+
{
54+
"name": "__cf_bm",
55+
"value": "7MlwjViG9VmolezmVFgLTOpqzQWIRCtIbFp8sNai2Do-1769451871-1.0.1.1-aA.iR7WoY0bARRyuen.fk1egUkqxsXXipFx6b31Qgr3SDThrU7sODGx6ZkYiOPLkVfEcGccoQfX2Mc88AbBGf3KhS22jwJBZeTRQwUnbeu8",
56+
"domain": ".hubspot.com",
57+
"path": "/",
58+
"expires": 1769453671.399171,
59+
"httpOnly": true,
60+
"secure": true,
61+
"sameSite": "None"
62+
},
63+
{
64+
"name": "_cfuvid",
65+
"value": ".Q9I5RYBS2KXfVBhC0XxqtngCCadxSnbU9TkNAvpcxc-1769451871413-0.0.1.1-604800000",
66+
"domain": ".hubspot.com",
67+
"path": "/",
68+
"expires": -1,
69+
"httpOnly": true,
70+
"secure": true,
71+
"sameSite": "None"
72+
},
73+
{
74+
"name": "_gcl_au",
75+
"value": "1.1.1036820304.1769451871",
76+
"domain": "localhost",
77+
"path": "/",
78+
"expires": 1777227871,
79+
"httpOnly": false,
80+
"secure": false,
81+
"sameSite": "Lax"
82+
},
83+
{
84+
"name": "console_session",
85+
"value": "eyJhbGciOiJkaXIiLCJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwidHlwIjoiSldUIiwiemlwIjoiREVGIn0..nxLKCmBX-kdM_IAf.NoPP7dkh1tQWm1FZ0yTBjcvS9p2dlkrzFIqasbezs0j6yYlA4E4Hy__ohqRj7ocUHnnNVJGKhF4PTGhKsRGQ-DoFu4tBRhSZckEKfWsERZ5qjOhls0h8bRkLTR-d4CCHxfasg4C9Ekp-D3yveh6UBxsrQxggg1zaIXf_n79srMe3OhOPN03Q1mv11LNgJd2rMugCUGEOENREWGrF1mxWYnaq4IXmx6mMj9CozQlYGOogKNHfV_EcInB2XXYkt300lDIHT4Z7S1fCMiWjB4P0aQ0xs9eC8M0tzkxSsWyryO9Lm3iVRD55T0L-oNQkENOKibsMvOwJqOMpJ0LOzc3q1Ljm_v1yBTMNSceRYw4QK0E-zTgFBhkVLjKxfj7w9M4uwscyuycpaNCr6KgbjLFpkGjDm6ySQEmwsp9-VdzlS75q9kwro-5P4irw6B4s1MUcw3ZEZWiCrkJ_YIdzDYDSi9f50U03zFszTJLpjiuvsboCIDJQWpwGIh0Ouytf9qK0LxqXk8ub.xag2gzvva9XFbuOqy8F30g",
86+
"domain": "localhost",
87+
"path": "/",
88+
"expires": 1800987872.24291,
89+
"httpOnly": true,
90+
"secure": false,
91+
"sameSite": "Lax"
92+
},
93+
{
94+
"name": "_hp2_id.328327039",
95+
"value": "%7B%22userId%22%3A%222335447698431825%22%2C%22pageviewId%22%3A%222306694724670764%22%2C%22sessionId%22%3A%225481344585107165%22%2C%22identity%22%3A%22e2euser%22%2C%22trackerVersion%22%3A%224.0%22%2C%22identityField%22%3Anull%2C%22isIdentified%22%3A1%7D",
96+
"domain": "localhost",
97+
"path": "/",
98+
"expires": 1803529472,
99+
"httpOnly": false,
100+
"secure": false,
101+
"sameSite": "Lax"
102+
},
103+
{
104+
"name": "_hp2_props.328327039",
105+
"value": "%7B%22Product%20Name%22%3A%22Console%22%2C%22Platform%22%3A%22Kafka%22%2C%22BakedInTrial%22%3Afalse%2C%22LicenseType%22%3A%22Enterprise%22%2C%22MillisecondsToExpiration%22%3A6121287699%2C%22SSOEnabled%22%3Atrue%7D",
106+
"domain": "localhost",
107+
"path": "/",
108+
"expires": 1803529472,
109+
"httpOnly": false,
110+
"secure": false,
111+
"sameSite": "Lax"
112+
}
113+
],
114+
"origins": [
115+
{
116+
"origin": "http://localhost:3100",
117+
"localStorage": [
118+
{
119+
"name": "chakra-ui-color-mode",
120+
"value": "light"
121+
},
122+
{
123+
"name": "_gcl_ls",
124+
"value": "{\"schema\":\"gcl\",\"version\":1,\"gcl_ctr\":{\"value\":{\"value\":0,\"timeouts\":0,\"creationTimeMs\":1769451871437},\"expires\":1777227871437}}"
125+
}
126+
]
127+
}
128+
]
129+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
"use strict";
2+
var __assign = (this && this.__assign) || function () {
3+
__assign = Object.assign || function(t) {
4+
for (var s, i = 1, n = arguments.length; i < n; i++) {
5+
s = arguments[i];
6+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7+
t[p] = s[p];
8+
}
9+
return t;
10+
};
11+
return __assign.apply(this, arguments);
12+
};
13+
var _a;
14+
Object.defineProperty(exports, "__esModule", { value: true });
15+
var test_1 = require("@playwright/test");
16+
var dotenv_1 = require("dotenv");
17+
dotenv_1.default.config();
18+
// Configure reporters based on environment
19+
var reporters = process.env.CI
20+
? [['github'], ['html', { outputFolder: 'playwright-report' }]]
21+
: [['list'], ['html', { outputFolder: 'playwright-report' }]];
22+
/**
23+
* Playwright Test configuration for OSS (console) variant
24+
*/
25+
var config = (0, test_1.defineConfig)({
26+
expect: {
27+
timeout: 60 * 1000,
28+
},
29+
// Test directory specified in package.json script
30+
testMatch: '**/*.spec.ts',
31+
/* Run tests in files in parallel */
32+
fullyParallel: !!process.env.CI,
33+
/* Fail the build on CI if you accidentally left test.only in the source code. */
34+
forbidOnly: !!process.env.CI,
35+
/* Retry on CI only */
36+
retries: process.env.CI ? 2 : 0,
37+
/* Number of parallel workers */
38+
workers: process.env.CI ? 4 : undefined,
39+
/* Reporter to use */
40+
reporter: reporters,
41+
/* Global setup and teardown */
42+
globalSetup: '../shared/global-setup.mjs',
43+
globalTeardown: '../shared/global-teardown.mjs',
44+
/* Custom metadata for setup/teardown */
45+
metadata: {
46+
variant: 'console',
47+
variantName: 'console',
48+
configFile: 'console.config.yaml',
49+
isEnterprise: false,
50+
needsShadowlink: false,
51+
},
52+
/* Shared settings for all projects */
53+
use: {
54+
navigationTimeout: 30 * 1000,
55+
actionTimeout: 30 * 1000,
56+
viewport: { width: 1920, height: 1080 },
57+
headless: !!process.env.CI,
58+
/* Base URL uses variant-specific backend port */
59+
baseURL: (_a = process.env.REACT_APP_ORIGIN) !== null && _a !== void 0 ? _a : 'http://localhost:3000',
60+
/* Collect trace when retrying the failed test */
61+
trace: 'retain-on-failure',
62+
/* Capture screenshot on failure */
63+
screenshot: 'only-on-failure',
64+
/* Record video on failure */
65+
video: 'retain-on-failure',
66+
},
67+
/* Configure projects */
68+
projects: [
69+
// OSS: Single project without authentication
70+
{
71+
name: 'chromium',
72+
use: __assign(__assign({}, test_1.devices['Desktop Chrome']), { permissions: ['clipboard-read', 'clipboard-write'] }),
73+
testIgnore: '**/quotas/pagination.spec.ts',
74+
},
75+
// Isolated project for quota pagination tests (avoid RPK conflicts)
76+
{
77+
name: 'quotas-isolated',
78+
testMatch: '**/quotas/pagination.spec.ts',
79+
workers: 1,
80+
use: __assign(__assign({}, test_1.devices['Desktop Chrome']), { permissions: ['clipboard-read', 'clipboard-write'] }),
81+
},
82+
],
83+
});
84+
exports.default = config;

frontend/tests/test-variant-console/quotas/pagination.spec.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)