• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / gui / 897326496

pending completion
897326496

Pull #3752

gitlab-ci

mzedel
chore(e2e): made use of shared timeout & login checking values to remove code duplication

Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>
Pull Request #3752: chore(e2e-tests): slightly simplified log in test + separated log out test

4395 of 6392 branches covered (68.76%)

8060 of 9780 relevant lines covered (82.41%)

126.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/js/components/common/dialogs/confirmdismisshelptips.js
1
// Copyright 2019 Northern.tech AS
2
//
3
//    Licensed under the Apache License, Version 2.0 (the "License");
4
//    you may not use this file except in compliance with the License.
5
//    You may obtain a copy of the License at
6
//
7
//        http://www.apache.org/licenses/LICENSE-2.0
8
//
9
//    Unless required by applicable law or agreed to in writing, software
10
//    distributed under the License is distributed on an "AS IS" BASIS,
11
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
//    See the License for the specific language governing permissions and
13
//    limitations under the License.
14
import React from 'react';
15
import { connect } from 'react-redux';
16

17
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';
18

19
import helptooltips from '../../../../assets/img/helptooltips.png';
20
import { setOnboardingCanceled, setShowDismissOnboardingTipsDialog } from '../../../actions/onboardingActions';
21

22
export const ConfirmDismissHelptips = ({ setOnboardingCanceled, setShowDismissOnboardingTipsDialog }) => (
3✔
23
  <Dialog open={true}>
1✔
24
    <DialogTitle>Dismiss the Getting Started help?</DialogTitle>
25
    <DialogContent>
26
      <p>Hide the help tips? You haven&apos;t finished your first update yet.</p>
27
      <p>You can always show the help again later by selecting the option from the top menu:</p>
28
      <div className="flexbox centered">
29
        <img src={helptooltips} />
30
      </div>
31
    </DialogContent>
32
    <DialogActions>
33
      <Button onClick={() => setShowDismissOnboardingTipsDialog(false)}>Cancel</Button>
×
34
      <div style={{ flexGrow: 1 }} />
35
      <Button variant="contained" color="secondary" onClick={setOnboardingCanceled}>
36
        Yes, hide the help
37
      </Button>
38
    </DialogActions>
39
  </Dialog>
40
);
41

42
const actionCreators = { setOnboardingCanceled, setShowDismissOnboardingTipsDialog };
3✔
43

44
export default connect(null, actionCreators)(ConfirmDismissHelptips);
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc