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

#2490: fixed race condition in client-display_custom-labels_spec.js; … #2596

Merged
merged 1 commit into from
Jun 20, 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
1 change: 0 additions & 1 deletion .github/workflows/build-and-test-email-confirmation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ jobs:
npm install
npm run backend:dropAllDBTables
npm run cyServices:start:skills-service:verifyEmail
npm run cyServices:start:client-display
cd ..

- name: Run Cypress tests
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/build-and-test-night-service-tests.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/build-and-test-rabbitmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ jobs:
npm install
npm run backend:dropAllDBTables
npm run cyServices:start:skills-service:rabbitmq
npm run cyServices:start:client-display
cd ..

- name: Run Cypress tests
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ These pages provide in-depth guidance on installation, usage and contribution.
# Workflows Status
[![Continuous Integration](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test.yml)

[![Nightly Service Tests](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test-night-service-tests.yml/badge.svg)](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test-night-service-tests.yml)

[![Test Web Sockets over STOMP using RabbitMQ](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test-rabbitmq.yml/badge.svg)](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test-rabbitmq.yml)

[![Run integration tests using two way ssl](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test-ssl.yml/badge.svg)](https://github.com/NationalSecurityAgency/skills-service/actions/workflows/build-and-test-ssl.yml)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ describe('Client Display Custom Label Tests', () => {

cy.cdVisit('/');
cy.contains('Stage 2 Progress');
cy.get('[data-cy="pointHistoryChartNoData"]')
cy.contains('My Stage');
cy.get('[data-cy="overallLevelDesc"]')
.contains('Stage 1 out of 5');
Expand All @@ -109,6 +110,7 @@ describe('Client Display Custom Label Tests', () => {
.should('not.exist');

cy.cdClickRank();
cy.get('[data-cy="levelBreakdownChart-animationEnded"]')
cy.get('[data-cy="myRankLevelStatCard"]')
.contains('My Stage');
cy.get('[data-cy="levelBreakdownChart"]')
Expand All @@ -118,9 +120,10 @@ describe('Client Display Custom Label Tests', () => {
cy.contains('Level')
.should('not.exist');

cy.get('[data-cy=breadcrumb-Overview]')
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy=breadcrumb-Overview]')
.click();
cy.get('[data-cy="title"]').contains('User Skills')
cy.get('[data-cy="pointHistoryChartNoData"]')
cy.get('[data-cy="subjectTileBtn"]').should('have.length', 3).should('be.visible');
cy.cdClickSubj(0);
cy.contains('Stage 3 Progress');
Expand All @@ -138,7 +141,8 @@ describe('Client Display Custom Label Tests', () => {
.should('have.text', 'subj1');

cy.cdClickRank();
cy.contains('My Stage');
cy.get('[data-cy="myRankLevelStatCard"]').contains('My Stage');
cy.get('[data-cy="levelBreakdownChart-animationEnded"]')
cy.get('[data-cy="levelBreakdownChart"]')
.contains('Stage Breakdown');
cy.get('[data-cy="levelBreakdownChart"]')
Expand All @@ -149,7 +153,10 @@ describe('Client Display Custom Label Tests', () => {
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy=breadcrumbLink-subj1]')
.click();
cy.get('[data-cy="skillProgressTitle-skill1"]')
cy.get('[data-cy="pointHistoryChartNoData"]')

cy.cdClickSkill(0, true, 'Course');
cy.get('[data-cy="skillProgressTitle-skill1"]').contains('Very Great Skill 1')
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-subj1"] [data-cy="breadcrumbItemLabel"]')
.should('have.text', 'Competency:');
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-skill1"] [data-cy="breadcrumbItemLabel"]')
Expand All @@ -158,9 +165,13 @@ describe('Client Display Custom Label Tests', () => {
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy=breadcrumbLink-Overview]')
.click();
cy.get('[data-cy="title"]').contains('User Skills')
cy.get('[data-cy="pointHistoryChartNoData"]')
cy.get('[data-cy="subjectTileBtn"]').should('have.length', 3).should('be.visible');

cy.cdClickBadges();
cy.cdVisit('/badges/global/globalBadge1');
cy.get('[data-cy="badge_globalBadge1"]')

cy.get('[data-cy="badgeDetailsLink_globalBadge1"]').click()
cy.get('[data-cy="gb_proj1"]')
.contains('Stage 1');
cy.contains('Level')
Expand All @@ -174,23 +185,28 @@ describe('Client Display Custom Label Tests', () => {
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy=breadcrumbLink-Overview]')
.click();
cy.get('[data-cy="title"]').contains('User Skills')
cy.get('[data-cy="pointHistoryChartNoData"]')
cy.get('[data-cy="subjectTileBtn"]').should('have.length', 3).should('be.visible');

cy.cdClickSubj(1);
cy.get('[data-cy="noContent"]')
.contains('Courses have not been added yet');
cy.get('[data-cy="pointHistoryChartNoData"]')
cy.get('[data-cy="noContent"]')
.contains('Please contact this work role\'s administrator.');

cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-subj2"] [data-cy="breadcrumbItemLabel"]')
.should('have.text', 'Competency:');

cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy=breadcrumbLink-Overview]')
.click();
cy.get('[data-cy="title"]').contains('User Skills')
cy.get('[data-cy="pointHistoryChartNoData"]')
cy.get('[data-cy="subjectTileBtn"]').should('have.length', 3).should('be.visible');
cy.cdClickSubj(2);

cy.cdClickSubj(2, 'Subject 3', false);
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-subj3"] [data-cy="breadcrumbItemLabel"]')
.should('have.text', 'Competency:');
cy.get('[data-cy="pointHistoryChartNoData"]')

cy.cdClickSkill(0, true, 'Course');
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-subj3"] [data-cy="breadcrumbItemLabel"]')
Expand All @@ -204,6 +220,9 @@ describe('Client Display Custom Label Tests', () => {
.contains('You just earned 100 points!');

cy.cdBack('Subject 3');
cy.get('[data-cy="skillProgress_index-0"]')
cy.get('[data-cy="pointHistoryChartNoData"]')

cy.cdClickSkill(1, true, 'Course');
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-subj3"] [data-cy="breadcrumbItemLabel"]')
.should('have.text', 'Competency:');
Expand All @@ -218,6 +237,9 @@ describe('Client Display Custom Label Tests', () => {
.contains('This course requires approval from a work role administrator. Now let\'s play the waiting game!');

cy.cdBack('Subject 3');
cy.get('[data-cy="skillProgress_index-0"]')
cy.get('[data-cy="pointHistoryChartNoData"]')

cy.cdClickSkill(2, true, 'Course');
cy.get('[data-cy="skillsDisplayBreadcrumbBar"] [data-cy="breadcrumb-subj3"] [data-cy="breadcrumbItemLabel"]')
.should('have.text', 'Competency:');
Expand Down
Loading