Merge tag 'fixed_user_test' into develop
v1.26.15
This commit is contained in:
@@ -46,9 +46,9 @@ describe("First Component From First Page", () => {
|
|||||||
});
|
});
|
||||||
it("Show Login Button And Do Not Show Dashboard Button When User Authentication Is Expired", async () => {
|
it("Show Login Button And Do Not Show Dashboard Button When User Authentication Is Expired", async () => {
|
||||||
localStorage.setItem("_token", 'token');
|
localStorage.setItem("_token", 'token');
|
||||||
server.use([rest.get(GET_USER, (req, res, ctx) => {
|
server.use(rest.get(GET_USER, (req, res, ctx) => {
|
||||||
return res(ctx.status(403))
|
return res(ctx.status(401))
|
||||||
})])
|
}))
|
||||||
render(<MockAppWithProviders><FirstComponent/></MockAppWithProviders>);
|
render(<MockAppWithProviders><FirstComponent/></MockAppWithProviders>);
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
const authenticationButtonLogin = screen.queryByText(/ورود کارشناس/i)
|
const authenticationButtonLogin = screen.queryByText(/ورود کارشناس/i)
|
||||||
|
|||||||
Reference in New Issue
Block a user