-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace pascalcase by camelcase (#43)
* Rename services attributes * Update storybook components * Update reporting-api version * Set reporting-api version that only accept patch versions
- Loading branch information
1 parent
da9452e
commit d69ad59
Showing
32 changed files
with
2,096 additions
and
1,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
BASE_URL="http://<baseURL>/API" | ||
GXQUERY_BASE_URL="http://<baseURL>/API/v1" | ||
|
||
REPOSITORY_NAME="" | ||
USER_NAME="" | ||
USER_PASSWORD="" | ||
GXQUERY_REPOSITORY_NAME="" | ||
GXQUERY_USER_NAME="" | ||
GXQUERY_USER_PASSWORD="" | ||
|
||
API_VERSION_PATH="" | ||
GXQUERY_METADATA_NAME="" | ||
|
||
METADATA_NAME="" | ||
GXQUERY_SESSION_LIMIT=10 | ||
|
||
SESSION_LIMIT=10 | ||
|
||
DEFAULT_GENERATOR="net" | ||
GXQUERY_DEFAULT_GENERATOR="net" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/components/gx-query/query-chat/__test__/query-chat.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// query-chat.spec.ts | ||
|
||
import { SpecPage, newSpecPage } from "@stencil/core/testing"; | ||
import { QueryChat } from "../query-chat"; | ||
|
||
describe("query chat", () => { | ||
const value = "Hello World"; | ||
let page: SpecPage; | ||
|
||
beforeEach(async () => { | ||
page = await newSpecPage({ | ||
components: [QueryChat], | ||
html: `<gx-query-chat main-title="${value}"></gx-query-chat>` | ||
}); | ||
}); | ||
|
||
it("builds", () => { | ||
expect(new QueryChat()).toBeTruthy(); | ||
}); | ||
|
||
it("should render the title", async () => { | ||
// Act | ||
const chatTitle = page.body | ||
.querySelector("gx-query-chat") | ||
.shadowRoot.querySelector<HTMLDivElement>("[part=query-chat__title]"); | ||
|
||
// Assert | ||
expect(chatTitle).toEqualHtml(` | ||
<h1 part="query-chat__title">${value}</h1> | ||
`); | ||
}); | ||
|
||
it("should render controls", async () => { | ||
// Act | ||
const chatTitle = page.body | ||
.querySelector("gx-query-chat") | ||
.shadowRoot.querySelector<HTMLDivElement>("[part=query-chat__controls]"); | ||
|
||
// Assert | ||
expect(chatTitle).toEqualHtml(` | ||
<div part="query-chat__controls"> | ||
<gx-button accessible-name="unlocked" height="20px" image-position="below" main-image-src="./assets/undock.svg" role="button" tabindex="0" width="20px"></gx-button> | ||
<gx-button accessible-name="minimize" height="20px" image-position="below" main-image-src="./assets/minimize.svg" role="button" | ||
tabindex="0" width="20px"></gx-button> | ||
</div> | ||
`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.