Fixup tests

This commit is contained in:
Girish Ramakrishnan 2022-09-20 18:57:27 +02:00
parent 466dcff1d8
commit 7de060613a
1 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ describe('Application life cycle test', function () {
await waitForElement(By.id('accessKey')); await waitForElement(By.id('accessKey'));
await browser.findElement(By.id('accessKey')).sendKeys(accessKey); await browser.findElement(By.id('accessKey')).sendKeys(accessKey);
await browser.findElement(By.id('secretKey')).sendKeys(secretKey); await browser.findElement(By.id('secretKey')).sendKeys(secretKey);
await browser.findElement(By.xpath('//button[contains(text(), "Login")]')).click(); await browser.findElement(By.xpath('//button[@id="do-login"]')).click();
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]')); await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
await delay(5000); await delay(5000);
} }
@ -68,11 +68,11 @@ describe('Application life cycle test', function () {
async function addBucket() { async function addBucket() {
await browser.get(`https://${app.fqdn}/buckets`); await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath('//button/span[text()="Create Bucket"]')); await waitForElement(By.xpath('//button[@id="create-bucket"]'));
await browser.findElement(By.xpath('//button/span[text()="Create Bucket"]')).click(); await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
await browser.sleep(2000); await browser.sleep(2000);
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET); await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
await browser.findElement(By.xpath('//button[text()="Create Bucket"]')).click(); await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
await waitForElement(By.xpath(`//a[contains(text(), "${BUCKET}")]`)); await waitForElement(By.xpath(`//a[contains(text(), "${BUCKET}")]`));
await delay(5000); await delay(5000);
} }