Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gurramkarthiknetha committed Jan 8, 2025
1 parent 68d6193 commit b432126
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 108 deletions.
6 changes: 3 additions & 3 deletions src/components/UpdateSession/UpdateSession.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('Testing UpdateTimeout Component', () => {
// Simulate dragging to minimum value
userEvent.click(slider, {
// Simulate clicking on the slider to focus
clientX: -999, // Adjust the clientX to simulate different slider positions
// clientX: -999, // Adjust the clientX to simulate different slider positions
});

expect(mockOnValueChange).toHaveBeenCalledWith(15); // Adjust based on slider min value

Check failure on line 113 in src/components/UpdateSession/UpdateSession.spec.tsx

View workflow job for this annotation

GitHub Actions / Test Application

src/components/UpdateSession/UpdateSession.spec.tsx > Testing UpdateTimeout Component > Should handle minimum slider value correctly

AssertionError: expected "spy" to be called with arguments: [ 15 ] Received: Number of calls: 0 ❯ src/components/UpdateSession/UpdateSession.spec.tsx:113:31
Expand All @@ -127,7 +127,7 @@ describe('Testing UpdateTimeout Component', () => {
// Simulate dragging to maximum value
userEvent.click(slider, {
// Simulate clicking on the slider to focus
clientX: 999, // Adjust the clientX to simulate different slider positions
// clientX: 999, // Adjust the clientX to simulate different slider positions
});

expect(mockOnValueChange).toHaveBeenCalledWith(60); // Adjust based on slider max value

Check failure on line 133 in src/components/UpdateSession/UpdateSession.spec.tsx

View workflow job for this annotation

GitHub Actions / Test Application

src/components/UpdateSession/UpdateSession.spec.tsx > Testing UpdateTimeout Component > Should handle maximum slider value correctly

AssertionError: expected "spy" to be called with arguments: [ 60 ] Received: Number of calls: 0 ❯ src/components/UpdateSession/UpdateSession.spec.tsx:133:31
Expand All @@ -147,7 +147,7 @@ describe('Testing UpdateTimeout Component', () => {
// Simulate invalid value handling
userEvent.click(slider, {
// Simulate clicking on the slider to focus
clientX: 0, // Adjust the clientX to simulate different slider positions
// clientX: 0, // Adjust the clientX to simulate different slider positions
});

// Ensure onValueChange is not called with invalid values
Expand Down
102 changes: 0 additions & 102 deletions src/screens/BlockUser/BlockUser.module.css

This file was deleted.

75 changes: 72 additions & 3 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ hr {
top: 50%;
width: 50%;
height: 1px;
background: #fff;
background: var(--white);
content: '';
}
.pageNotFound h1.head span:before {
Expand Down Expand Up @@ -3743,7 +3743,7 @@ button[data-testid='createPostBtn'] {

.primaryText {
font-weight: bold;
color: var(--bs-emphasis-color, #000);
color: var(--bs-emphasis-color, var(--black-color));
@extend .reusable-text-ellipsis; /* Referencing the reusable class from the general section */
}

Expand Down Expand Up @@ -3796,7 +3796,7 @@ button[data-testid='createPostBtn'] {

.inactiveButton {
background-color: transparent;
color: var(--bs-emphasis-color, #000);
color: var(--bs-emphasis-color, var(--black-color));

&:hover {
background-color: var(--grey-bg-color);
Expand Down Expand Up @@ -5938,3 +5938,72 @@ button[data-testid='createPostBtn'] {
margin-left: 13vw;
max-width: 80vw;
}

.btnsContainer .input {
width: 70%;
}

.btnsContainer .inputContainer button {
width: 52px;
}

.largeBtnsWrapper {
display: flex;
}

.listBox {
width: 100%;
flex: 1;
}

@media (max-width: 1020px) {
.btnsContainer {
flex-direction: column;
margin: 1.5rem 0;
}

.btnsContainer .input {
width: 100%;
}

.btnsContainer .btnsBlock {
margin: 1.5rem 0 0 0;
justify-content: space-between;
}

.btnsContainer .btnsBlock button {
margin: 0;
}

.btnsContainer .btnsBlock div button {
margin-right: 1.5rem;
}
}

/* For mobile devices */

@media (max-width: 520px) {
.btnsContainer {
margin-bottom: 0;
}

.btnsContainer .btnsBlock {
display: block;
margin-top: 1rem;
margin-right: 0;
}

.largeBtnsWrapper {
flex-direction: column;
}

.btnsContainer .btnsBlock div {
flex: 1;
}

.btnsContainer .btnsBlock button {
margin-bottom: 1rem;
margin-right: 0;
width: 100%;
}
}

0 comments on commit b432126

Please sign in to comment.