Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

469941: Replace EntityListComponent with EntityTableComponent #49

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions test/components/entity-list.component.js

This file was deleted.

5 changes: 4 additions & 1 deletion test/components/entity-table.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class EntityTableComponent {
}

entityLink(content) {
return $('[data-testid="app-entity-link"]*=' + content)
return $(
'[data-testid="app-entity-table"] [data-testid="app-entity-link"]*=' +
content
)
}
}

Expand Down
6 changes: 4 additions & 2 deletions test/specs/create-microservice.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ServicesPage from 'page-objects/services.page'
import FormComponent from 'components/form.component'
import HeadingComponent from 'components/heading.component'
import PageHeadingComponent from 'components/page-heading.component'
import EntityListComponent from 'components/entity-list.component'
import EntityTableComponent from 'components/entity-table.component'
import ErrorPage from 'page-objects/error.page'
import LoginStubPage from 'page-objects/login-stub.page'

Expand Down Expand Up @@ -148,7 +148,9 @@ describe('Create microservice', () => {
await expect(await ServicesPage.navIsActive()).toBe(true)
await expect(PageHeadingComponent.title('Services')).toExist()

await expect(EntityListComponent.entityLink(testRepositoryName)).toExist()
await expect(
EntityTableComponent.entityLink(testRepositoryName)
).toExist()
})
})
})
Loading