mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
Bugfix/workspace name case mismatch (#6560)
* fix: preserve workspace name casing in title bar (#6522) * fix: improve workspace display name handling in title bar --------- Co-authored-by: Uzairkazi695 <kaziuzair695@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ test.describe('Default Workspace Migration', () => {
|
||||
await page.locator('[data-app-state="loaded"]').waitFor({ timeout: 30000 });
|
||||
|
||||
await test.step('Verify workspace UI', async () => {
|
||||
await expect(page.locator('.workspace-name')).toContainText('My Workspace');
|
||||
await expect(page.getByTestId('workspace-name')).toHaveText('My Workspace');
|
||||
});
|
||||
|
||||
await test.step('Verify workspace filesystem artifacts', async () => {
|
||||
@@ -87,7 +87,7 @@ test.describe('Default Workspace Migration', () => {
|
||||
const page = await app.firstWindow();
|
||||
await page.locator('[data-app-state="loaded"]').waitFor({ timeout: 30000 });
|
||||
|
||||
await expect(page.locator('.workspace-name')).toContainText('My Workspace');
|
||||
await expect(page.getByTestId('workspace-name')).toHaveText('My Workspace');
|
||||
|
||||
// Verify workspace.yml has both collections
|
||||
const workspacePath = path.join(userDataPath, 'default-workspace');
|
||||
@@ -132,7 +132,7 @@ test.describe('Default Workspace Migration', () => {
|
||||
await page.locator('[data-app-state="loaded"]').waitFor({ timeout: 30000 });
|
||||
|
||||
// Verify default workspace is created
|
||||
await expect(page.locator('.workspace-name')).toContainText('My Workspace');
|
||||
await expect(page.getByTestId('workspace-name')).toHaveText('My Workspace');
|
||||
|
||||
// Sample collection should NOT be created (because user has existing collections)
|
||||
const sampleCollection = page.locator('#sidebar-collection-name').getByText('Sample API Collection');
|
||||
@@ -151,7 +151,7 @@ test.describe('Default Workspace Migration', () => {
|
||||
const app1 = await launchElectronApp({ userDataPath });
|
||||
const page1 = await app1.firstWindow();
|
||||
await page1.locator('[data-app-state="loaded"]').waitFor({ timeout: 30000 });
|
||||
await expect(page1.locator('.workspace-name')).toContainText('My Workspace');
|
||||
await expect(page1.getByTestId('workspace-name')).toHaveText('My Workspace');
|
||||
|
||||
// Verify initial workspace was created
|
||||
const workspacePath = path.join(userDataPath, 'default-workspace');
|
||||
@@ -165,7 +165,7 @@ test.describe('Default Workspace Migration', () => {
|
||||
const app2 = await launchElectronApp({ userDataPath });
|
||||
const page2 = await app2.firstWindow();
|
||||
await page2.locator('[data-app-state="loaded"]').waitFor({ timeout: 30000 });
|
||||
await expect(page2.locator('.workspace-name')).toContainText('My Workspace');
|
||||
await expect(page2.getByTestId('workspace-name')).toHaveText('My Workspace');
|
||||
|
||||
// workspace.yml should NOT have been modified
|
||||
const currentYmlContent = fs.readFileSync(path.join(workspacePath, 'workspace.yml'), 'utf8');
|
||||
@@ -188,7 +188,7 @@ test.describe('Default Workspace Migration', () => {
|
||||
const page = await app.firstWindow();
|
||||
await page.locator('[data-app-state="loaded"]').waitFor({ timeout: 30000 });
|
||||
|
||||
await expect(page.locator('.workspace-name')).toContainText('My Workspace');
|
||||
await expect(page.getByTestId('workspace-name')).toHaveText('My Workspace');
|
||||
|
||||
// Verify workspace was created
|
||||
const workspacePath = path.join(userDataPath, 'default-workspace');
|
||||
|
||||
Reference in New Issue
Block a user