Skip to content

Commit aa31999

Browse files
committed
Fixed tabular text only field and screenshots
1 parent 2b166ff commit aa31999

File tree

7 files changed

+59
-1
lines changed

7 files changed

+59
-1
lines changed

djangocms_admin_style/sass/components/_tables.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@
329329
line-height: 36px;
330330
height: 36px;
331331
}
332+
> p {
333+
line-height: 36px;
334+
}
332335
a:not(.related-widget-wrapper-link):not(.add-another):before {
333336
vertical-align: middle;
334337
line-height: 36px;

djangocms_admin_style/static/djangocms_admin_style/css/djangocms-admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_admin_style/tests/integration/adminsortable2.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,61 @@ casper.test.begin('Creation of a new job opening', function (test) {
211211
});
212212
});
213213

214+
casper.test.begin('Submission of a job opening', function (test) {
215+
casper.start()
216+
.then(cms.addPage({ title: 'Home' }))
217+
.then(cms.addPage({ title: 'Jobs' }))
218+
.then(cms.addApphookToPage({
219+
page: 'Jobs',
220+
apphook: 'JobsApp'
221+
}))
222+
.then(cms.publishPage({
223+
page: 'Jobs'
224+
}))
225+
.thenOpen(globals.baseUrl + 'jobs/')
226+
.waitForSelector('article', function () {
227+
this.clickLabel('Test job');
228+
})
229+
.waitForSelector('form', function () {
230+
this.fill('form', {
231+
salutation: 'male',
232+
first_name: 'Vadim',
233+
last_name: 'Sikora',
234+
235+
cover_letter: 'Oh boy, I am amazing!'
236+
}, true);
237+
})
238+
.waitForSelector('.cms-messages-inner', function () {
239+
test.assertSelectorHasText('.cms-messages-inner', 'You have successfully applied for');
240+
})
241+
.thenOpen(globals.adminUrl)
242+
.waitUntilVisible('#content', function () {
243+
this.click(
244+
xPath(cms.getXPathForAdminSection({
245+
section: 'Aldryn Jobs',
246+
row: 'Job openings',
247+
link: 'Change'
248+
}))
249+
);
250+
})
251+
.waitForUrl(/jobopening/)
252+
.waitForSelector('#changelist-form', function () {
253+
this.clickLabel('Test job');
254+
})
255+
.waitUntilVisible('#jobopening_form')
256+
.wait(2000, function () {
257+
phantomcss.screenshot('html', 'Job opening with submissions');
258+
})
259+
.then(function () {
260+
phantomcss.compareSession();
261+
})
262+
.then(cms.removePage())
263+
.then(cms.removePage())
264+
.run(function () {
265+
test.done();
266+
});
267+
});
268+
214269
casper.test.begin('Deletion of a job opening', function (test) {
215270
casper
216271
.start(globals.adminUrl)
-802 Bytes
Loading
-9.89 KB
Loading
61 Bytes
Loading
111 KB
Loading

0 commit comments

Comments
 (0)