Fakultas Ilmu Komputer UI

Commit d16ee114 authored by sirinbaisa's avatar sirinbaisa
Browse files

[#140382397] #12 Create test untuk lowongan dan modal pendaftaran

parent dd5f7565
......@@ -53,6 +53,11 @@ body {
margin: 0 auto;
margin-top: 100px;
width: 430px;
border: 2px solid transparent;
border-radius: 12px;
background-color: transparent;
padding: 10px;
}
.formLogin span{
......@@ -63,6 +68,29 @@ font-size: 30px;
margin-left: 10px;
}
.SsoLogin{
margin: 0 auto;
margin-top: 100px;
width: 430px;
border: 2px solid transparent;
border-radius: 12px;
background-color: transparent;
padding: 10px;
}
.SsoLogin span{
font-size: 30px;
}
.SsoLogin span{
margin-left: 10px;
}
.LoginPage{
height: 700px;
}
.input{
margin-top: 5px;
}
......@@ -78,4 +106,5 @@ font-size: 30px;
.linkCV{
float: right;
margin-top: 10px;
}
\ No newline at end of file
}
/* eslint-disable no-unused-expressions */
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import Lowongan from '../components/Lowongan';
it('renders without problem', () => {
let lowongan = ReactTestUtils.renderIntoDocument(
<Lowongan />);
expect(lowongan).to.exist;
lowongan = ReactTestUtils.renderIntoDocument(
<Lowongan image="img" header="header" content="content" paragraph="paragraph"/>);
expect(lowongan).to.exist;
});
/* eslint-disable no-unused-expressions */
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ModalPendaftaran from '../components/ModalPendaftaran';
it('renders without problem', () => {
const lowongan = ReactTestUtils.renderIntoDocument(
<ModalPendaftaran header="header" buttontTitle="buttonTitle" content="content"/>);
expect(lowongan).to.exist;
});
import React from 'react';
import { Modal, Button, Icon } from 'semantic-ui-react';
import { Modal, Button, Icon, Header } from 'semantic-ui-react';
export default class ModalAlert extends React.Component {
static propTypes = {
......@@ -24,19 +24,19 @@ export default class ModalAlert extends React.Component {
return (
<Modal
dimmer={false}
open={open}
onOpen={this.open}
onClose={this.close}
size="small"
trigger={<Button > Proceed <Icon name="right chevron" /></Button>}
basic
trigger={<Button color="blue" > Proceed <Icon name="right chevron" /></Button>}
>
<Modal.Header>{this.props.header}</Modal.Header>
<Modal.Content>
<p>{this.props.content}</p>
</Modal.Content>
<Modal.Actions>
<Button icon="check" content="All Done" onClick={this.props.onChangeValue} />
<Button icon='checkmark' color="green" content="All Done" onClick={this.props.onChangeValue} />
</Modal.Actions>
</Modal>
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment