Skip to content

Commit

Permalink
Fixed failing AAS test
Browse files Browse the repository at this point in the history
The test has been fixed to work with the changes made for the removal of the AAS error text
  • Loading branch information
SergioCasCeb committed Oct 20, 2023
1 parent db89428 commit 14572a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/web-new/tests/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ test.describe("AsyncAPI view functionality", () => {


test.describe("AAS AID view functionality", () => {
test("Trying to open the AAS view with a TD with no protocols and closing it", async ({ page }) => {
test("Open the AAS view with a TD with no protocols and closing it", async ({ page }) => {

const initialTab = page.locator("#tab").nth(0)
await expect(initialTab).toHaveAttribute('data-tab-id', "1")
Expand All @@ -1602,8 +1602,7 @@ test.describe("AAS AID view functionality", () => {
await AASTab.click()

await expect(AASTab).toBeChecked({ checked: true })
await expect(AASView).toHaveClass("console-view aas-view hidden")
await expect(page.locator(".console-error__txt")).toHaveText("Please insert a TD which uses HTTP, MQTT, CoAP or Modbus!")
await expect(AASView).toHaveClass("console-view aas-view")

const trashBtn = page.locator(".trash")
await trashBtn.click()
Expand Down

0 comments on commit 14572a3

Please sign in to comment.