File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
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
+ } ) ;
You can’t perform that action at this time.
0 commit comments