Skip to content

Commit

Permalink
Rename instances of Command.settings to Command.atOperatingMode in gr…
Browse files Browse the repository at this point in the history
…aphql-schema.js
  • Loading branch information
howard-e committed Dec 14, 2023
1 parent c0f623c commit 0b2f00a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions server/graphql-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,13 @@ const graphqlSchema = gql`
"""
text: String!
"""
The AT mode this command may be getting ran in, such as "quickNavOn".
The AT mode this command may be getting ran in, such as quickNavOn,
browseMode, etc.
The same command can be ran during the same test, but in a different
mode
mode.
"""
settings: String
# TODO: Add link to list of known AT modes
atOperatingMode: String
}
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const createTestResultSkeleton = ({
scenario.commands.find(
c =>
c.id === e.commandId &&
c.settings === e.settings
c.atOperatingMode === e.settings
) && e.priority === 'EXCLUDE'
);
})
Expand Down
2 changes: 1 addition & 1 deletion server/resolvers/TestPlanVersion/testsResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const testsResolver = parentRecord => {
text: `${commandKVs[0].value}${
screenText ? ` (${screenText})` : ''
}`,
settings: scenario.settings
atOperatingMode: scenario.settings
};
}
return { id: '', text: '' };
Expand Down
5 changes: 2 additions & 3 deletions server/tests/integration/graphql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('graphql', () => {
['TestPlanVersion', 'recommendedPhaseTargetDate'],
['TestPlanVersion', 'deprecatedAt'],
['Test', 'viewers'],
['Command', 'settings'] // TODO: Uncomment when v2 test format CI tests are done
['Command', 'atOperatingMode'] // TODO: Include when v2 test format CI tests are done
];
({
typeAwareQuery,
Expand Down Expand Up @@ -279,7 +279,7 @@ describe('graphql', () => {
__typename
id
text
settings
atOperatingMode
}
}
assertions {
Expand Down Expand Up @@ -530,7 +530,6 @@ describe('graphql', () => {
}
`
);
// console.info(queryResult);

await dbCleaner(async () => {
const {
Expand Down

0 comments on commit 0b2f00a

Please sign in to comment.