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

Create September 23, 2024 Release #1220

Merged
merged 2 commits into from
Sep 23, 2024
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
20 changes: 10 additions & 10 deletions client/tests/e2e/snapshots/saved/_data-management.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,19 +257,19 @@ <h3>
<option value="49">Main Landmark</option>
<option value="60">Media Seek Slider</option>
<option value="54">Meter</option>
<option value="86">Modal Dialog Example</option>
<option value="52">Navigation Menu Button</option>
<option value="87">Modal Dialog Example</option>
<option value="86">Navigation Menu Button</option>
<option value="74">
Radio Group Example Using Roving tabindex
</option>
<option value="87">
<option value="88">
Radio Group Example Using aria-activedescendant
</option>
<option value="59">Rating Slider</option>
<option value="7">Select Only Combobox Example</option>
<option value="61">Switch Example</option>
<option value="62">Tabs with Manual Activation</option>
<option value="88">Toggle Button</option>
<option value="89">Toggle Button</option>
<option value="64">Vertical Temperature Slider</option>
</select>
</div>
Expand Down Expand Up @@ -623,7 +623,7 @@ <h2>Test Plans Status Summary</h2>
<span
class="full-width auto-width css-36z7cz"
role="listitem"
><a href="/test-review/86"
><a href="/test-review/87"
><span
><svg
aria-hidden="true"
Expand Down Expand Up @@ -1005,7 +1005,7 @@ <h2>Test Plans Status Summary</h2>
<span
class="full-width auto-width css-36z7cz"
role="listitem"
><a href="/test-review/88"
><a href="/test-review/89"
><span
><svg
aria-hidden="true"
Expand Down Expand Up @@ -2232,15 +2232,15 @@ <h2>Test Plans Status Summary</h2>
<td>
<div class="css-bpz90">
<span class="rd full-width css-be9e2a">R&amp;D</span>
<p class="review-text">Complete <b>May 26, 2022</b></p>
<p class="review-text">Complete <b>Sep 19, 2024</b></p>
</div>
</td>
<td>
<div role="list" aria-setsize="2" class="css-1bj5ml9">
<span
class="full-width auto-width css-36z7cz"
role="listitem"
><a href="/test-review/52"
><a href="/test-review/86"
><span
><svg
aria-hidden="true"
Expand All @@ -2255,7 +2255,7 @@ <h2>Test Plans Status Summary</h2>
<path
fill="currentColor"
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
><b>V22.05.26</b></span
><b>V24.09.19</b></span
></a
></span
><button
Expand Down Expand Up @@ -2344,7 +2344,7 @@ <h2>Test Plans Status Summary</h2>
<span
class="full-width auto-width css-36z7cz"
role="listitem"
><a href="/test-review/87"
><a href="/test-review/88"
><span
><svg
aria-hidden="true"
Expand Down
4 changes: 2 additions & 2 deletions client/tests/e2e/snapshots/saved/_test-queue.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h3>
<option value="1">Alert Example</option>
<option value="67">Checkbox Example (Mixed-State)</option>
<option value="68">Command Button Example</option>
<option value="86">Modal Dialog Example</option>
<option value="87">Modal Dialog Example</option>
<option value="7">Select Only Combobox Example</option>
<option value="31">Toggle Button</option>
</select>
Expand Down Expand Up @@ -553,7 +553,7 @@ <h3>
aria-labelledby="disclosure-btn-modal-dialog-0"
class="css-19fsyrg">
<div class="css-25wfk">
<a href="/test-review/86"
<a href="/test-review/87"
><svg
aria-hidden="true"
focusable="false"
Expand Down
9 changes: 9 additions & 0 deletions deploy/roles/application/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@

- include: upload-source-code.yml

- name: Allow aria-bot user to run import script as admin on sandbox
lineinfile:
path: /etc/sudoers
state: present
line: 'aria-bot ALL=(ALL) NOPASSWD:{{source_dir}}/deploy/scripts/export-and-exec.sh'
validate: 'visudo -cf %s'
become: yes
when: deployment_mode == 'sandbox'

# TODO: these permissions changes are a workaround solution

- name: Make server scripts folder writable for import tests API endpoint
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/TestController.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function importTests(req, res) {
console.log(error.message);
// This is when the script fails because the git hash is invalid
// Sending semantic error.
res.sendStatus(422);
res.status(422).send(error.message);
}
}

Expand Down
2 changes: 1 addition & 1 deletion server/graphql-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ const graphqlSchema = gql`
"""
Test Number the issue was raised for.
"""
testNumberFilteredByAt: Int
testNumberFilteredByAt: Float
"""
The time the issue was created, according to GitHub.
"""
Expand Down
11 changes: 9 additions & 2 deletions server/scripts/import-tests/testPlanVersionOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,15 @@ const processTestPlanVersion = async ({
*/
const importHarness = () => {
const sourceFolder = path.resolve(`${testsDirectory}/resources`);
const targetFolder = path.resolve('../', 'client/resources');
console.info(`Updating harness directory, ${targetFolder} ...`);
const targetFolder = path.resolve(
__dirname,
'../../../',
'client',
'resources'
);
console.info(
`Updating harness directory, copying from ${sourceFolder} to ${targetFolder} ...`
);
fse.rmSync(targetFolder, { recursive: true, force: true });

// Copy source folder
Expand Down
1 change: 1 addition & 0 deletions server/services/TestService.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function runImportScript(git_hash) {
let importScriptDirectoryPrefix = isDevelopmentProcess ? '.' : './server';
let command = `${deployDirectoryPrefix}/deploy/scripts/export-and-exec.sh ${process.env.IMPORT_CONFIG} node ${importScriptDirectoryPrefix}/scripts/import-tests/index.js`;
if (git_hash) command += ` -c ${git_hash}`;
if (process.env.ENVIRONMENT === 'sandbox') command = `sudo ${command}`;
exec(command, (error, stdout, stderr) => {
if (error) {
reject(error);
Expand Down
Loading