-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prelogin component for mobile view #150
base: master
Are you sure you want to change the base?
prelogin component for mobile view #150
Conversation
avinash-mane
commented
May 20, 2020
•
edited
Loading
edited
- create pre login panel component
- test cases
4245ccd
to
ce80211
Compare
9c5ae2b
to
aa64f47
Compare
react-frontend/src/shared-components/login-text-component/LoginTextComponent.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Development Guidelilnes not met
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Development Guidelines not met
913769c
to
335edb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mention dependent prs
take rebase with master
|
||
const LogoComponent = () => ( | ||
<Col data-testid="peerlyLogoComponent"> | ||
<Row> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix grid
fcb92b0
to
f37618f
Compare
d172a0c
to
c371bde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- LoginImageComponent.test.js - has multiple issues
- MobileDashboardComponent.js - incorrect file name
|
||
import LoginImageComponent from "login/LoginImageComponent"; | ||
import { IMG_BASE_PATH } from "constants/appConstants"; | ||
import Image from "../../public/assets/images/cat-img.png"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avi4630 why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sahilbhatia for test case of props.when we give size="lg" then render different image therefore
we use this path to check image render correctly or not
@sahilbhatia mayuri suggest this name |
test("render image with correct size", () => { | ||
const { getByAltText } = render(<LoginImageComponent size="lg" />); | ||
const testImage = getByAltText("login image"); | ||
expect(testImage.src).toBe("http://localhost/assets/images//cat-img.png"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use IMG_BASE_PATH this here