Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit dc7380a0 authored by atthoriq's avatar atthoriq
Browse files

add test for feedback page

parent f597cd30
Branches 1606918484-102
No related tags found
1 merge request!1181606918484 102
Pipeline #24460 passed
......@@ -9,4 +9,13 @@ describe('FeedbackPage', () => {
);
expect(feedbackPage).to.exist;
});
it('contains page title', () => {
const feedbackPage = ReactTestUtils.renderIntoDocument(
<FeedbackPage />,
);
const titleh1 = ReactTestUtils.findRenderedDOMComponentWithTag(feedbackPage, 'h1');
const titleh2 = ReactTestUtils.findRenderedDOMComponentWithTag(feedbackPage, 'h2');
expect(titleh1.textContent).to.equal('Berikan Umpan Balik');
expect(titleh2.textContent).to.equal('Silahkan berikan umpan balik atas layanan yang disediakan oleh KaPe');
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment