Skip to content

Commit 4ac2c4a

Browse files
authored
Merge pull request #4706 from ved-bruno/e2e_support
Playwright: Support Element Verification
2 parents 7c27193 + 8debb9f commit 4ac2c4a

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('Should verify all support links with correct URL in preference > Support tab', 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)