diff --git a/Makefile b/Makefile index 1e701ef..ae3baf4 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ endef compile: daemon-compile-currentenv daemon-compile-currentenv: - go build -o OliveTin github.com/OliveTin/OliveTin/cmd/OliveTin + go build github.com/OliveTin/OliveTin/cmd/OliveTin daemon-compile-armhf: go env -w GOARCH=arm GOARM=6 diff --git a/integration-tests/configs/general/config.yaml b/integration-tests/configs/general/config.yaml index 8c864f8..d70c0bc 100644 --- a/integration-tests/configs/general/config.yaml +++ b/integration-tests/configs/general/config.yaml @@ -24,12 +24,12 @@ actions: shell: sleep 5 icon: "😪" -- title: date-popup - shell: date +- title: dir-popup + shell: dir popupOnStart: execution-dialog-stdout-only -- title: date-passive - shell: date +- title: cd-passive + shell: cd - title: "Run Ansible Playbook" icon: "🇦" diff --git a/integration-tests/test/general.mjs b/integration-tests/test/general.mjs index b547e60..2c648ee 100644 --- a/integration-tests/test/general.mjs +++ b/integration-tests/test/general.mjs @@ -44,42 +44,42 @@ describe('config: general', function () { expect(buttons).to.have.length(8) }) - it('Start date action (popup)', async function() { + it('Start dir action (popup)', async function () { await getRootAndWait() - const buttons = await webdriver.findElements(By.css('[title="date-popup"]')) + const buttons = await webdriver.findElements(By.css('[title="dir-popup"]')) expect(buttons).to.have.length(1) - const buttonDate = buttons[0] + const buttonCMD = buttons[0] - expect(buttonDate).to.not.be.null + expect(buttonCMD).to.not.be.null - buttonDate.click() + buttonCMD.click() const dialog = await webdriver.findElement(By.id('execution-results-popup')) expect(await dialog.isDisplayed()).to.be.true const title = await webdriver.findElement(By.id('execution-dialog-title')) - expect(await title.getAttribute('innerText')).to.be.equal('date-popup') + expect(await webdriver.wait(until.elementTextIs(title, 'dir-popup'), 2000)) const dialogErr = await webdriver.findElement(By.id('big-error')) expect(dialogErr).to.not.be.null expect(await dialogErr.isDisplayed()).to.be.false }) - it('Start date action (passive)', async function() { + it('Start cd action (passive)', async function () { await getRootAndWait() - const buttons = await webdriver.findElements(By.css('[title="date-passive"]')) + const buttons = await webdriver.findElements(By.css('[title="cd-passive"]')) expect(buttons).to.have.length(1) - const buttonDate = buttons[0] + const buttonCMD = buttons[0] - expect(buttonDate).to.not.be.null + expect(buttonCMD).to.not.be.null - buttonDate.click() + buttonCMD.click() const dialog = await webdriver.findElement(By.id('execution-results-popup')) expect(await dialog.isDisplayed()).to.be.false