Skip to content

Commit

Permalink
Rename kick action button
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Aschebrock <[email protected]>
  • Loading branch information
ThiloAschebrock committed Sep 15, 2023
1 parent fa055a7 commit 694effd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/pages/card-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class CardPage {
}

async kickUser(name: string) {
await this.votes.getByTitle(`Kick ${name}`).click();
await this.votes.getByTitle(`Kick ${name} out`).click();
}

async selectCard(value: CardValue) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/App/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('The App component', () => {
socket.test_messages = [];

// when
fireEvent.click(getByRole('button', { name: 'Kick Non-voting User' }));
fireEvent.click(getByRole('button', { name: 'Kick Non-voting User out' }));

// then
expect(container.querySelector('tbody')).toHaveTextContent('Happy UserVoting User');
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const LABEL_SESSION = 'Session:';

export const BUTTON_CONNECTING = 'Connecting…';
export const BUTTON_COPY_TO_CLIPBOARD = 'Copy Link to Clipboard';
export const BUTTON_KICK = (user: string) => `Kick ${user}`;
export const BUTTON_KICK = (user: string) => `Kick ${user} out`;
export const BUTTON_LOGIN = 'Login';
export const BUTTON_OBSERVER = 'Observer';
export const BUTTON_REFRESH_SESSION = 'Refresh Session';
Expand Down

0 comments on commit 694effd

Please sign in to comment.