Commit 789432f1 authored by Carsten  Rose's avatar Carsten Rose
Browse files

test snapshot

parent d7b88851
......@@ -17,6 +17,7 @@ Neue Versionsnummer
3) Im Projektverzeichnis:
make t3sphinx (dadurch fallen Fehler in RESTdoc Syntax auf)
4) Neues ZIP bauen: rm qfq.zip; make qfq.zip
......
......@@ -30,94 +30,94 @@ test.describe('Typeahead', function () {
test.it("should switch to readonly", function (done) {
driver.get(URL)
.then(
() => driver.findElement(By.id('input1'))
() => driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing some text')
.then(
driver.findElement(By.css('#input1 + div > button'))
.then(
(button) => button.click()
)
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing in readonly field')
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing some text')
.then(
driver.findElement(By.css('#input1 + div > button'))
.then(
(button) => button.click()
)
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing in readonly field')
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => (textinput.getAttribute('value'))
.then(
text => {
should(text).be.exactly('typing some text');
done();
}
)
)
(textinput) => (textinput.getAttribute('value'))
.then(
text => {
should(text).be.exactly('typing some text');
done();
}
)
)
)
)
});
test.it("should switch back from readonly", function (done) {
driver.get(URL)
.then(
() => driver.findElement(By.css('#input1 + div > button'))
() => driver.findElement(By.css('#input1 + div > button'))
.then(
(button) => button.click()
.then(
(button) => button.click()
.then(
() => button.click()
)
)
).then(
() => button.click()
)
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.clear()
(textinput) => textinput.clear()
.then(
() => textinput.sendKeys('This should now be typed')
).then(
() => textinput.getAttribute('value')
.then(
() => textinput.sendKeys('This should now be typed')
).then(
() => textinput.getAttribute('value')
.then(
text => {
should(text).be.exactly('This should now be typed');
done();
}
)
)
text => {
should(text).be.exactly('This should now be typed');
done();
}
)
)
)
)
});
test.it("should switch to readonly when clicking the button-enclosed element", function (done) {
driver.get(URL)
.then(
() => driver.findElement(By.id('input1'))
() => driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing some text')
.then(
(textinput) => textinput.sendKeys('typing some text')
.then(
driver.findElement(By.css('#input1 + div > button span'))
.then(
(button) => button.click()
)
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing in readonly field')
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => (textinput.getAttribute('value'))
.then(
text => {
should(text).be.exactly('typing some text');
done();
}
)
)
driver.findElement(By.css('#input1 + div > button span'))
.then(
(button) => button.click()
)
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => textinput.sendKeys('typing in readonly field')
)
).then(
driver.findElement(By.id('input1'))
.then(
(textinput) => (textinput.getAttribute('value'))
.then(
text => {
should(text).be.exactly('typing some text');
done();
}
)
)
)
)
});
});
\ No newline at end of file
Markdown is supported
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