From 0d31e89741ebd18a4244f9c52b88b31936151d08 Mon Sep 17 00:00:00 2001 From: Vladimir D Date: Tue, 25 Feb 2025 14:25:59 +0400 Subject: [PATCH] tests fixed --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 48f47fa..0bba9bb 100644 --- a/test/test.js +++ b/test/test.js @@ -116,7 +116,7 @@ describe('Application life cycle test', function () { await waitForElement(By.xpath('//input[@name="url_rss"]')); await browser.findElement(By.xpath('//input[@name="url_rss"]')).sendKeys(url); await browser.findElement(By.xpath('//form[@id="add_rss"]//button[text()="Add"]')).click(); - await waitForElement(By.xpath('//div[@id="notification" and @class="notification good"]')); + await waitForElement(By.xpath('//div[@id="notification" and contains(@class, "good")]')); } async function addUser(username, password) { @@ -125,7 +125,7 @@ describe('Application life cycle test', function () { await browser.findElement(By.id('new_user_name')).sendKeys(username); await browser.findElement(By.id('new_user_passwordPlain')).sendKeys(password); await browser.findElement(By.xpath('//button[text()="Create"]')).click(); - await waitForElement(By.xpath('//div[@id="notification" and @class="notification good"]')); + await waitForElement(By.xpath('//div[@id="notification" and contains(@class, "good")]')); } async function enableApi() {