Skip to content

Commit c14d7de

Browse files
committed
Test app support support_element
1 parent d2bcfa2 commit c14d7de

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { test, expect } from '../playwright';
2+
3+
test('Verify Support Elements', async ({ page }) => {
4+
5+
// Open Preferences
6+
await page.getByLabel('Open Preferences').click();
7+
8+
// Verify Support tab
9+
await page.getByRole('tab', { name: 'Support' }).click();
10+
11+
const locator_twitter = page.getByRole('link', { name: 'Twitter' });
12+
expect(await locator_twitter.getAttribute('href')).toEqual('https://twitter.com/use_bruno');
13+
14+
const locator_github = page.getByRole('link', { name: 'GitHub', exact: true });
15+
expect(await locator_github.getAttribute('href')).toEqual('https://github.com/usebruno/bruno');
16+
17+
const locator_discord = page.getByRole('link', { name: 'Discord', exact: true });
18+
expect(await locator_discord.getAttribute('href')).toEqual('https://discord.com/invite/KgcZUncpjq');
19+
20+
const locator_reportissues = page.getByRole('link', { name: 'Report Issues', exact: true });
21+
expect(await locator_reportissues.getAttribute('href')).toEqual('https://github.com/usebruno/bruno/issues');
22+
23+
const locator_documentation = page.getByRole('link', { name: 'Documentation', exact: true });
24+
expect(await locator_documentation.getAttribute('href')).toEqual('https://docs.usebruno.com');
25+
26+
27+
});

0 commit comments

Comments
 (0)