mirror of
https://github.com/altlinux/admc.git
synced 2025-02-03 05:47:02 +03:00
fix password edit verify test
previous version was nonsense
This commit is contained in:
parent
a112de8037
commit
c29da5c157
@ -65,17 +65,13 @@ void ADMCTestPasswordEdit::load() {
|
||||
QVERIFY(confirm_edit->text().isEmpty());
|
||||
}
|
||||
|
||||
void ADMCTestPasswordEdit::apply_with_bad_confirm() {
|
||||
load();
|
||||
const QString password = "pass123!";
|
||||
|
||||
void ADMCTestPasswordEdit::verify() {
|
||||
main_edit->setText("test");
|
||||
confirm_edit->setText("no-match");
|
||||
|
||||
qInfo() << "NOTE: the following error is to be expected";
|
||||
const bool apply_success = edit->apply(ad, dn);
|
||||
const bool verify_success = edit->verify(ad, dn);
|
||||
close_message_box();
|
||||
QVERIFY(!apply_success);
|
||||
QCOMPARE(verify_success, false);
|
||||
}
|
||||
|
||||
void ADMCTestPasswordEdit::apply() {
|
||||
|
@ -34,7 +34,7 @@ private slots:
|
||||
|
||||
void edited_signal();
|
||||
void load();
|
||||
void apply_with_bad_confirm();
|
||||
void verify();
|
||||
void apply();
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user