File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 17
17
import { Role , Selector } from "testcafe" ;
18
18
import { readFileSync } from "fs" ;
19
19
import { IAM_PAGES } from "../../src/common/SecureComponent/permissions" ;
20
- import { monitoringElement } from "../utils/elements-menu" ;
20
+ import { inspectElement , monitoringElement } from "../utils/elements-menu" ;
21
21
22
22
const data = readFileSync ( __dirname + "/../constants/timestamp.txt" , "utf-8" ) ;
23
23
const $TIMESTAMP = data . trim ( ) ;
@@ -96,7 +96,7 @@ test("Inspect page can be opened", async (t) => {
96
96
} ) ;
97
97
98
98
test ( "Inspect link exists in Menu list" , async ( t ) => {
99
- await t . expect ( inspectEl . exists ) . ok ( ) ;
99
+ await t . useRole ( inspectAllowedRole ) . expect ( inspectElement . exists ) . ok ( ) ;
100
100
} ) ;
101
101
102
102
test ( "Form Input states verification" , async ( t ) => {
Original file line number Diff line number Diff line change @@ -91,5 +91,9 @@ export const performanceElement = Selector(".MuiPaper-root")
91
91
export const profileElement = Selector ( ".MuiPaper-root" )
92
92
. find ( "ul" )
93
93
. child ( "#profile" ) ;
94
+ export const inspectElement = sidebarItem . withAttribute (
95
+ "href" ,
96
+ "/support/inspect"
97
+ ) ;
94
98
95
99
export const licenseElement = sidebarItem . withAttribute ( "href" , "/license" ) ;
You can’t perform that action at this time.
0 commit comments