test for refresh (#1497)
This commit is contained in:
parent
39c1e8e208
commit
29a90f3e3d
1 changed files with 12 additions and 4 deletions
|
@ -9,17 +9,25 @@ import { expectWelcomeMessageIncludes } from "../../support/pages/homePage";
|
|||
filterTests({ definedTags: ["all"] }, () => {
|
||||
describe("Displaying welcome message on home page", () => {
|
||||
it("should display user name on home page", () => {
|
||||
cy.loginUserViaRequest();
|
||||
cy.visit(urlList.homePage);
|
||||
cy.loginUserViaRequest().visit(urlList.homePage);
|
||||
expectWelcomeMessageIncludes(
|
||||
`${TEST_ADMIN_USER.name} ${TEST_ADMIN_USER.lastName}`
|
||||
);
|
||||
});
|
||||
|
||||
it("should display user email on home page", () => {
|
||||
cy.loginUserViaRequest("auth", USER_WITHOUT_NAME);
|
||||
cy.visit(urlList.homePage);
|
||||
cy.loginUserViaRequest("auth", USER_WITHOUT_NAME).visit(urlList.homePage);
|
||||
expectWelcomeMessageIncludes(`${USER_WITHOUT_NAME.email}`);
|
||||
});
|
||||
|
||||
it("should refresh page without errors", () => {
|
||||
cy.loginUserViaRequest()
|
||||
.visit(urlList.homePage)
|
||||
.waitForProgressBarToNotExist()
|
||||
.reload(true);
|
||||
expectWelcomeMessageIncludes(
|
||||
`${TEST_ADMIN_USER.name} ${TEST_ADMIN_USER.lastName}`
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue